aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-02-18 10:57:09 -0500
committerRalf Baechle <ralf@linux-mips.org>2007-02-18 16:31:36 -0500
commitb6dcec9ba4cdfeec937c045d275a5c330a1dbe16 (patch)
tree536ddd83161562d731a5b7038536105b42f217b8 /arch
parent102fa15c3f14565f2edb9f08f08ea3f2bf123dc9 (diff)
[MIPS] Make __declare_dbe_table static and avoid it getting optimized away
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/traps.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 2a932cada244..f663c63d5dd3 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)