RTEMS
bsp_fatal_halt.c
Go to the documentation of this file.
1 
14 #include <bsp.h>
15 #include <leon.h>
16 
17 #ifdef BSP_POWER_DOWN_AT_FATAL_HALT
18 
19 /* Power down LEON CPU on fatal error exit */
20 void _CPU_Fatal_halt(uint32_t source, uint32_t error)
21 {
23  leon3_power_down_loop();
24 }
25 
26 #else
27 
28 /* return to debugger, simulator, hypervisor or similar by exiting
29  * with an error code. g1=1, g2=FATAL_SOURCE, G3=error-code.
30  */
31 void _CPU_Fatal_halt(uint32_t source, uint32_t error)
32 {
33  sparc_syscall_exit(source, error);
34 }
35 
36 #endif
static uint32_t sparc_disable_interrupts(void)
SPARC disable processor interrupts.
Definition: sparc.h:319
LEON3 BSP data types and macros.
void sparc_syscall_exit(uint32_t exitcode1, uint32_t exitcode2) RTEMS_NO_RETURN
SPARC exit through system call 1.
void _CPU_Fatal_halt(uint32_t source, uint32_t error)