diff options
Diffstat (limited to 'board/zinger/runtime.c')
-rw-r--r-- | board/zinger/runtime.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/zinger/runtime.c b/board/zinger/runtime.c index 11b1643d30..0caaa146fd 100644 --- a/board/zinger/runtime.c +++ b/board/zinger/runtime.c @@ -260,16 +260,17 @@ void system_reset(int flags) void exception_panic(void) __attribute__((naked)); void exception_panic(void) { - asm volatile( #ifdef CONFIG_DEBUG_PRINTF + asm volatile( "mov r0, %0\n" + /* TODO: Should this be SP_process instead of SP_main? */ "mov r3, sp\n" "ldr r1, [r3, #6*4]\n" /* retrieve exception PC */ "ldr r2, [r3, #5*4]\n" /* retrieve exception LR */ "bl debug_printf\n" -#endif - "b cpu_reset\n" : : "r"("PANIC PC=%08x LR=%08x\n\n")); +#endif + cpu_reset(); } void panic_reboot(void) |