mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 17:37:02 +02:00
To make software license auditing simpler, use SPDX[0] license identifiers instead of duplicating the license text in every file. NOTE: Files that have been imported by FreeBSD have not been modified. [0]: https://spdx.org/ Change-Id: I80a00e1f641b8cc075ca5a95b10607ed9ed8761a Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
32 lines
820 B
ArmAsm
32 lines
820 B
ArmAsm
/*
|
|
* Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#include <asm_macros.S>
|
|
#include <bl_common.h>
|
|
#include <v2m_def.h>
|
|
|
|
.globl plat_report_exception
|
|
|
|
|
|
/* -------------------------------------------------------
|
|
* void plat_report_exception(unsigned int type)
|
|
* Function to report an unhandled exception
|
|
* with platform-specific means.
|
|
* On FVP platform, it updates the LEDs
|
|
* to indicate where we are.
|
|
* SYS_LED[0] - 0x0
|
|
* SYS_LED[2:1] - 0x0
|
|
* SYS_LED[7:3] - Exception Mode.
|
|
* Clobbers: r0-r1
|
|
* -------------------------------------------------------
|
|
*/
|
|
func plat_report_exception
|
|
lsl r0, r0, #V2M_SYS_LED_EC_SHIFT
|
|
ldr r1, =V2M_SYSREGS_BASE
|
|
add r1, r1, #V2M_SYS_LED
|
|
str r0, [r1]
|
|
bx lr
|
|
endfunc plat_report_exception
|