diff options
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/traps_64.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c index 488c1cd557f1..c902c29400a3 100644 --- a/arch/sh/kernel/traps_64.c +++ b/arch/sh/kernel/traps_64.c | |||
@@ -32,15 +32,6 @@ | |||
32 | #include <asm/pgtable.h> | 32 | #include <asm/pgtable.h> |
33 | #include <asm/fpu.h> | 33 | #include <asm/fpu.h> |
34 | 34 | ||
35 | #undef DEBUG_EXCEPTION | ||
36 | #ifdef DEBUG_EXCEPTION | ||
37 | /* implemented in ../lib/dbg.c */ | ||
38 | extern void show_excp_regs(char *fname, int trapnr, int signr, | ||
39 | struct pt_regs *regs); | ||
40 | #else | ||
41 | #define show_excp_regs(a, b, c, d) | ||
42 | #endif | ||
43 | |||
44 | static void do_unhandled_exception(int trapnr, int signr, char *str, char *fn_name, | 35 | static void do_unhandled_exception(int trapnr, int signr, char *str, char *fn_name, |
45 | unsigned long error_code, struct pt_regs *regs, struct task_struct *tsk); | 36 | unsigned long error_code, struct pt_regs *regs, struct task_struct *tsk); |
46 | 37 | ||
@@ -239,7 +230,6 @@ DO_ERROR(12, SIGILL, "reserved instruction", reserved_inst, current) | |||
239 | /* Called with interrupts disabled */ | 230 | /* Called with interrupts disabled */ |
240 | asmlinkage void do_exception_error(unsigned long ex, struct pt_regs *regs) | 231 | asmlinkage void do_exception_error(unsigned long ex, struct pt_regs *regs) |
241 | { | 232 | { |
242 | show_excp_regs(__func__, -1, -1, regs); | ||
243 | die_if_kernel("exception", regs, ex); | 233 | die_if_kernel("exception", regs, ex); |
244 | } | 234 | } |
245 | 235 | ||
@@ -256,8 +246,6 @@ int do_unknown_trapa(unsigned long scId, struct pt_regs *regs) | |||
256 | static void do_unhandled_exception(int trapnr, int signr, char *str, char *fn_name, | 246 | static void do_unhandled_exception(int trapnr, int signr, char *str, char *fn_name, |
257 | unsigned long error_code, struct pt_regs *regs, struct task_struct *tsk) | 247 | unsigned long error_code, struct pt_regs *regs, struct task_struct *tsk) |
258 | { | 248 | { |
259 | show_excp_regs(fn_name, trapnr, signr, regs); | ||
260 | |||
261 | if (user_mode(regs)) | 249 | if (user_mode(regs)) |
262 | force_sig(signr, tsk); | 250 | force_sig(signr, tsk); |
263 | 251 | ||