[rtems commit] bsps: Add BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
Sebastian Huber
sebh at rtems.org
Fri Dec 7 08:35:17 UTC 2012
Module: rtems
Branch: master
Commit: facf83625b96e0f04d7049a005d554a396e8fbb5
Changeset: http://git.rtems.org/rtems/commit/?id=facf83625b96e0f04d7049a005d554a396e8fbb5
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Dec 6 17:42:41 2012 +0100
bsps: Add BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
Use rtems_fatal() instead of bsp_cleanup().
---
c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c | 10 ++++------
c/src/lib/libbsp/shared/include/bootcard.h | 3 ++-
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c b/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c
index d5ebfba..c9c94fe 100644
--- a/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c
+++ b/c/src/lib/libbsp/m68k/mrm332/spurious/spinit.c
@@ -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)
diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index 237b76d..ff9235c 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -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;
/**
More information about the vc
mailing list