mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
I've found it useful to display the panic message *before* dropping into the
debugger. Once there it may be very difficult to find the original message, and often a debugger isn't even needed if you can see what panicked. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
This commit is contained in:
1 parent
72e3f22324
commit
2c8dbad938
1 file changed
+2
-2
@@ -683,8 +683,6 @@ void panic(const char *fmt, ...)
|
||||
(void)vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
debugger_trap_immediate();
|
||||
|
||||
/* Spit out multiline message in one go. */
|
||||
spin_lock_irqsave(&lock, flags);
|
||||
printk("\n****************************************\n");
|
||||
@@ -694,6 +692,8 @@ void panic(const char *fmt, ...)
|
||||
printk("Reboot in five seconds...\n");
|
||||
spin_unlock_irqrestore(&lock, flags);
|
||||
|
||||
debugger_trap_immediate();
|
||||
|
||||
watchdog_disable();
|
||||
mdelay(5000);
|
||||
machine_restart(0);
|
||||
|
||||