|
@@ -482,49 +482,3 @@ asmlinkage void break_point_trap(void)
|
|
|
|
|
|
force_sig(SIGTRAP, current);
|
|
|
}
|
|
|
-
|
|
|
-/*
|
|
|
- * Generic trap handler.
|
|
|
- */
|
|
|
-asmlinkage void debug_trap_handler(unsigned long r4, unsigned long r5,
|
|
|
- unsigned long r6, unsigned long r7,
|
|
|
- struct pt_regs __regs)
|
|
|
-{
|
|
|
- struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
|
|
|
-
|
|
|
- /* Rewind */
|
|
|
- regs->pc -= instruction_size(ctrl_inw(regs->pc - 4));
|
|
|
-
|
|
|
- if (notify_die(DIE_TRAP, "debug trap", regs, 0, regs->tra & 0xff,
|
|
|
- SIGTRAP) == NOTIFY_STOP)
|
|
|
- return;
|
|
|
-
|
|
|
- force_sig(SIGTRAP, current);
|
|
|
-}
|
|
|
-
|
|
|
-/*
|
|
|
- * Special handler for BUG() traps.
|
|
|
- */
|
|
|
-asmlinkage void bug_trap_handler(unsigned long r4, unsigned long r5,
|
|
|
- unsigned long r6, unsigned long r7,
|
|
|
- struct pt_regs __regs)
|
|
|
-{
|
|
|
- struct pt_regs *regs = RELOC_HIDE(&__regs, 0);
|
|
|
-
|
|
|
- /* Rewind */
|
|
|
- regs->pc -= instruction_size(ctrl_inw(regs->pc - 4));
|
|
|
-
|
|
|
- if (notify_die(DIE_TRAP, "bug trap", regs, 0, TRAPA_BUG_OPCODE & 0xff,
|
|
|
- SIGTRAP) == NOTIFY_STOP)
|
|
|
- return;
|
|
|
-
|
|
|
-#ifdef CONFIG_BUG
|
|
|
- if (__kernel_text_address(instruction_pointer(regs))) {
|
|
|
- u16 insn = *(u16 *)instruction_pointer(regs);
|
|
|
- if (insn == TRAPA_BUG_OPCODE)
|
|
|
- handle_BUG(regs);
|
|
|
- }
|
|
|
-#endif
|
|
|
-
|
|
|
- force_sig(SIGTRAP, current);
|
|
|
-}
|