/* Metin KAYA */ Reboot On Crash: Embedded devices must be up and running for all times. Thus, the system has to be restarted in case of kernel oops/crashes. Using kernel_restart() function before "in_interrupt()" line of die() function is enough to restart system in kernel crashes. Index: arch/mips/kernel/traps.c =================================================================== --- arch/mips/kernel/traps.c +++ arch/mips/kernel/traps.c @@ -105,6 +105,8 @@ __setup("raw_show_trace", set_raw_show_trace); #endif +extern void kernel_restart(char *cmd); + NORET_TYPE void ATTRIB_NORET die(const char * str, struct pt_regs * regs) { static int die_counter; ..... spin_unlock_irq(&die_lock); + + kernel_restart(NULL); ..... }