aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/unwinder.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/unwinder.c')
-rw-r--r--arch/sh/kernel/unwinder.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/sh/kernel/unwinder.c b/arch/sh/kernel/unwinder.c
index e83861d9739c..468889d958f4 100644
--- a/arch/sh/kernel/unwinder.c
+++ b/arch/sh/kernel/unwinder.c
@@ -161,25 +161,4 @@ void unwind_stack(struct task_struct *task, struct pt_regs *regs,
curr_unwinder->dump(task, regs, sp, ops, data);
}
-
-/*
- * Trap handler for UWINDER_BUG() statements. We must switch to the
- * unwinder with the next highest rating.
- */
-BUILD_TRAP_HANDLER(unwinder)
-{
- insn_size_t insn;
- TRAP_HANDLER_DECL;
-
- /* Rewind */
- regs->pc -= instruction_size(ctrl_inw(regs->pc - 4));
- insn = *(insn_size_t *)instruction_pointer(regs);
-
- /* Switch unwinders when unwind_stack() is called */
- unwinder_faulted = 1;
-
-#ifdef CONFIG_BUG
- handle_BUG(regs);
-#endif
-}
EXPORT_SYMBOL_GPL(unwind_stack);