aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r--arch/mips/kernel/traps.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 2a932cada244..2aa208b99da8 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -340,13 +340,9 @@ NORET_TYPE void ATTRIB_NORET die(const char * str, struct pt_regs * regs)
340extern const struct exception_table_entry __start___dbe_table[]; 340extern const struct exception_table_entry __start___dbe_table[];
341extern const struct exception_table_entry __stop___dbe_table[]; 341extern const struct exception_table_entry __stop___dbe_table[];
342 342
343void __declare_dbe_table(void) 343__asm__(
344{ 344" .section __dbe_table, \"a\"\n"
345 __asm__ __volatile__( 345" .previous \n");
346 ".section\t__dbe_table,\"a\"\n\t"
347 ".previous"
348 );
349}
350 346
351/* Given an address, look for it in the exception tables. */ 347/* Given an address, look for it in the exception tables. */
352static const struct exception_table_entry *search_dbe_tables(unsigned long addr) 348static const struct exception_table_entry *search_dbe_tables(unsigned long addr)
@@ -708,6 +704,7 @@ asmlinkage void do_bp(struct pt_regs *regs)
708 die_if_kernel("Break instruction in kernel code", regs); 704 die_if_kernel("Break instruction in kernel code", regs);
709 force_sig(SIGTRAP, current); 705 force_sig(SIGTRAP, current);
710 } 706 }
707 return;
711 708
712out_sigsegv: 709out_sigsegv:
713 force_sig(SIGSEGV, current); 710 force_sig(SIGSEGV, current);
@@ -751,6 +748,7 @@ asmlinkage void do_tr(struct pt_regs *regs)
751 die_if_kernel("Trap instruction in kernel code", regs); 748 die_if_kernel("Trap instruction in kernel code", regs);
752 force_sig(SIGTRAP, current); 749 force_sig(SIGTRAP, current);
753 } 750 }
751 return;
754 752
755out_sigsegv: 753out_sigsegv:
756 force_sig(SIGSEGV, current); 754 force_sig(SIGSEGV, current);