]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Make __declare_dbe_table static and avoid it getting optimized away
authorRalf Baechle <ralf@linux-mips.org>
Sun, 18 Feb 2007 15:57:09 +0000 (15:57 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 18 Feb 2007 21:31:36 +0000 (21:31 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c

index 2a932cada244ba8a50d73a11ff2da79cfff42a90..f663c63d5dd31c4bd8049741d3c05735c912c801 100644 (file)
@@ -340,13 +340,9 @@ NORET_TYPE void ATTRIB_NORET die(const char * str, struct pt_regs * regs)
 extern const struct exception_table_entry __start___dbe_table[];
 extern const struct exception_table_entry __stop___dbe_table[];
 
-void __declare_dbe_table(void)
-{
-       __asm__ __volatile__(
-       ".section\t__dbe_table,\"a\"\n\t"
-       ".previous"
-       );
-}
+__asm__(
+"      .section        __dbe_table, \"a\"\n"
+"      .previous                       \n");
 
 /* Given an address, look for it in the exception tables. */
 static const struct exception_table_entry *search_dbe_tables(unsigned long addr)