Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56802
b: refs/heads/master
c: e113276
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 21, 2007
1 parent 01775f7 commit b2b7a92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3a9022fd187de41a04de9c5b44ff40e68c6d661
refs/heads/master: e113276624104d9c3b25f333d8dd999b804d980a
11 changes: 11 additions & 0 deletions trunk/arch/sh/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/bug.h>
#include <linux/debug_locks.h>
#include <linux/kdebug.h>
#include <linux/kexec.h>
#include <linux/limits.h>
#include <asm/system.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -101,6 +102,16 @@ void die(const char * str, struct pt_regs * regs, long err)

bust_spinlocks(0);
spin_unlock_irq(&die_lock);

if (kexec_should_crash(current))
crash_kexec(regs);

if (in_interrupt())
panic("Fatal exception in interrupt");

if (panic_on_oops)
panic("Fatal exception");

do_exit(SIGSEGV);
}

Expand Down

0 comments on commit b2b7a92

Please sign in to comment.