Browse Source

[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>
anton@samba.org 18 năm trước cách đây
mục cha
commit
293e4688fe
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      arch/powerpc/kernel/traps.c

+ 3 - 0
arch/powerpc/kernel/traps.c

@@ -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);
@@ -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;