summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 16:27:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 16:27:47 +0000
commitef99210e68a04754438545f8db2a79e30d83ab90 (patch)
treed3fe77dea4684afd26d5275a71a467f5d140996d /c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
parentPatch from Chris Johns <cjohns@cybertec.com.au> to make sure the (diff)
downloadrtems-ef99210e68a04754438545f8db2a79e30d83ab90.tar.bz2
Patch from Eric Valette to do some cleanup.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c b/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
index 7310fbd2c5..8d0a500185 100644
--- a/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
+++ b/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
@@ -65,11 +65,18 @@ void C_exception_handler(BSP_Exception_frame* excPtr)
printk("\t XER = %x\n", excPtr->EXC_XER);
printk("\t LR = %x\n", excPtr->EXC_LR);
printk("\t MSR = %x\n", excPtr->EXC_MSR);
- if ( (excPtr->_EXC_number == ASM_DEC_VECTOR) ||
- (excPtr->_EXC_number == ASM_SYS_VECTOR)
- )
+ if (excPtr->_EXC_number == ASM_DEC_VECTOR)
recoverable = 1;
- if (!recoverable) BSP_panic("unrecoverable exception!!! Push reset button\n");
+ if (excPtr->_EXC_number == ASM_SYS_VECTOR)
+#ifdef TEST_RAW_EXCEPTION_CODE
+ recoverable = 1;
+#else
+ recoverable = 0;
+#endif
+ if (!recoverable) {
+ printk("unrecoverable exception!!! Push reset button\n");
+ while(1);
+ }
}
void nop_except_enable(const rtems_raw_except_connect_data* ptr)