diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/kdebug.h | 1 | ||||
-rw-r--r-- | arch/sh/kernel/traps_32.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/include/asm/kdebug.h b/arch/sh/include/asm/kdebug.h index 49cd69051a88..0b9f896f203c 100644 --- a/arch/sh/include/asm/kdebug.h +++ b/arch/sh/include/asm/kdebug.h | |||
@@ -4,6 +4,7 @@ | |||
4 | /* Grossly misnamed. */ | 4 | /* Grossly misnamed. */ |
5 | enum die_val { | 5 | enum die_val { |
6 | DIE_TRAP, | 6 | DIE_TRAP, |
7 | DIE_OOPS, | ||
7 | }; | 8 | }; |
8 | 9 | ||
9 | #endif /* __ASM_SH_KDEBUG_H */ | 10 | #endif /* __ASM_SH_KDEBUG_H */ |
diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index b359b08a8e33..1e5c74efbacc 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c | |||
@@ -105,6 +105,8 @@ void die(const char * str, struct pt_regs * regs, long err) | |||
105 | dump_mem("Stack: ", regs->regs[15], THREAD_SIZE + | 105 | dump_mem("Stack: ", regs->regs[15], THREAD_SIZE + |
106 | (unsigned long)task_stack_page(current)); | 106 | (unsigned long)task_stack_page(current)); |
107 | 107 | ||
108 | notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV); | ||
109 | |||
108 | bust_spinlocks(0); | 110 | bust_spinlocks(0); |
109 | add_taint(TAINT_DIE); | 111 | add_taint(TAINT_DIE); |
110 | spin_unlock_irq(&die_lock); | 112 | spin_unlock_irq(&die_lock); |