Patch from Eric Valette to do some cleanup.

This commit is contained in:
Joel Sherrill
2000-06-29 16:27:47 +00:00
parent 9b6d1736ee
commit ef99210e68
3 changed files with 16 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
OUTPUT_ARCH(powerpc) OUTPUT_ARCH(powerpc)
OUTPUT_FORMAT(ppcboot) /* OUTPUT_FORMAT(ppcboot) */
/* Do we need any of these for elf? /* Do we need any of these for elf?
__DYNAMIC = 0; */ __DYNAMIC = 0; */
SECTIONS SECTIONS

View File

@@ -77,14 +77,14 @@ unsigned int BSP_time_base_divisor;
void BSP_panic(char *s) void BSP_panic(char *s)
{ {
printk("RTEMS 4.x PANIC %s\n", s); printk("%s PANIC %s\n",_RTEMS_version, s);
_return_to_ppcbug(); __asm__ __volatile ("sc");
} }
void _BSP_Fatal_error(unsigned int v) void _BSP_Fatal_error(unsigned int v)
{ {
printk("RTEMS 4.x PANIC ERROR %x\n", v); printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
_return_to_ppcbug(); __asm__ __volatile ("sc");
} }
/* /*

View File

@@ -65,11 +65,18 @@ void C_exception_handler(BSP_Exception_frame* excPtr)
printk("\t XER = %x\n", excPtr->EXC_XER); printk("\t XER = %x\n", excPtr->EXC_XER);
printk("\t LR = %x\n", excPtr->EXC_LR); printk("\t LR = %x\n", excPtr->EXC_LR);
printk("\t MSR = %x\n", excPtr->EXC_MSR); printk("\t MSR = %x\n", excPtr->EXC_MSR);
if ( (excPtr->_EXC_number == ASM_DEC_VECTOR) || if (excPtr->_EXC_number == ASM_DEC_VECTOR)
(excPtr->_EXC_number == ASM_SYS_VECTOR)
)
recoverable = 1; 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) void nop_except_enable(const rtems_raw_except_connect_data* ptr)