Skip to content

Commit

Permalink
[POWERPC] Add missing oops_enter/oops_exit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
anton@samba.org authored and Paul Mackerras committed Mar 26, 2007
1 parent 4002aca commit 293e468
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ int die(const char *str, struct pt_regs *regs, long err)
if (debugger(regs))
return 1;

oops_enter();

console_verbose();
spin_lock_irq(&die_lock);
bust_spinlocks(1);
Expand Down Expand Up @@ -145,6 +147,7 @@ int die(const char *str, struct pt_regs *regs, long err)
if (panic_on_oops)
panic("Fatal exception");

oops_exit();
do_exit(err);

return 0;
Expand Down

0 comments on commit 293e468

Please sign in to comment.