[POWERPC] Add missing oops_enter/oops_exit
Add missing oops_enter/oops_exit, makes pause_on_oops boot parameter work. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
4002aca771
commit
293e4688fe
@@ -99,6 +99,8 @@ int die(const char *str, struct pt_regs *regs, long err)
|
|||||||
if (debugger(regs))
|
if (debugger(regs))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
oops_enter();
|
||||||
|
|
||||||
console_verbose();
|
console_verbose();
|
||||||
spin_lock_irq(&die_lock);
|
spin_lock_irq(&die_lock);
|
||||||
bust_spinlocks(1);
|
bust_spinlocks(1);
|
||||||
@@ -145,6 +147,7 @@ int die(const char *str, struct pt_regs *regs, long err)
|
|||||||
if (panic_on_oops)
|
if (panic_on_oops)
|
||||||
panic("Fatal exception");
|
panic("Fatal exception");
|
||||||
|
|
||||||
|
oops_exit();
|
||||||
do_exit(err);
|
do_exit(err);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user