blob: d64da292ad94f879882eb7a83dc184b262a45158 [file] [log] [blame]
Yatharth Kocharf528faf2016-06-28 16:58:26 +01001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Yatharth Kocharf528faf2016-06-28 16:58:26 +01005 */
6#include <asm_macros.S>
7#include <bl_common.h>
8#include <v2m_def.h>
9
10 .globl plat_report_exception
11
12
13 /* -------------------------------------------------------
14 * void plat_report_exception(unsigned int type)
15 * Function to report an unhandled exception
16 * with platform-specific means.
17 * On FVP platform, it updates the LEDs
18 * to indicate where we are.
19 * SYS_LED[0] - 0x0
20 * SYS_LED[2:1] - 0x0
21 * SYS_LED[7:3] - Exception Mode.
22 * Clobbers: r0-r1
23 * -------------------------------------------------------
24 */
25func plat_report_exception
26 lsl r0, r0, #V2M_SYS_LED_EC_SHIFT
27 ldr r1, =V2M_SYSREGS_BASE
28 add r1, r1, #V2M_SYS_LED
29 str r0, [r1]
30 bx lr
31endfunc plat_report_exception