diff options
Diffstat (limited to 'arch/sh/kernel/traps.c')
-rw-r--r-- | arch/sh/kernel/traps.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c index b3e0067db358..881b9a32b7de 100644 --- a/arch/sh/kernel/traps.c +++ b/arch/sh/kernel/traps.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <asm/system.h> | 8 | #include <asm/system.h> |
9 | 9 | ||
10 | #ifdef CONFIG_BUG | 10 | #ifdef CONFIG_BUG |
11 | static void handle_BUG(struct pt_regs *regs) | 11 | void handle_BUG(struct pt_regs *regs) |
12 | { | 12 | { |
13 | enum bug_trap_type tt; | 13 | enum bug_trap_type tt; |
14 | tt = report_bug(regs->pc, regs); | 14 | tt = report_bug(regs->pc, regs); |
@@ -29,7 +29,10 @@ int is_valid_bugaddr(unsigned long addr) | |||
29 | if (probe_kernel_address((insn_size_t *)addr, opcode)) | 29 | if (probe_kernel_address((insn_size_t *)addr, opcode)) |
30 | return 0; | 30 | return 0; |
31 | 31 | ||
32 | return opcode == TRAPA_BUG_OPCODE; | 32 | if (opcode == TRAPA_BUG_OPCODE || opcode == TRAPA_UNWINDER_BUG_OPCODE) |
33 | return 1; | ||
34 | |||
35 | return 0; | ||
33 | } | 36 | } |
34 | #endif | 37 | #endif |
35 | 38 | ||