Home | History | Annotate | Download | only in aarch32
      1 /*
      2  * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
      3  *
      4  * SPDX-License-Identifier: BSD-3-Clause
      5  */
      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 	 */
     25 func 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
     31 endfunc plat_report_exception
     32