forked from Imagelibrary/rtems
bsps: Add BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
Use rtems_fatal() instead of bsp_cleanup().
This commit is contained in:
@@ -72,12 +72,10 @@ rtems_isr Spurious_Isr(
|
||||
RAW_PUTI(sp);
|
||||
RAW_PUTS("\n\r");
|
||||
#endif
|
||||
bsp_cleanup(1);
|
||||
|
||||
/* BDM SIGEMT */
|
||||
__asm__ (" .word 0x4afa");
|
||||
|
||||
for(;;);
|
||||
rtems_fatal(
|
||||
RTEMS_FATAL_SOURCE_BSP_GENERIC,
|
||||
BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
|
||||
);
|
||||
}
|
||||
|
||||
void Spurious_Initialize(void)
|
||||
|
||||
@@ -55,7 +55,8 @@ extern "C" {
|
||||
*/
|
||||
typedef enum {
|
||||
BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION,
|
||||
BSP_GENERIC_FATAL_INTERRUPT_INITIALIZATION
|
||||
BSP_GENERIC_FATAL_INTERRUPT_INITIALIZATION,
|
||||
BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
|
||||
} bsp_generic_fatal_code;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user