mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[MIPS] Make __declare_dbe_table static and avoid it getting optimized away
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
102fa15c3f
commit
b6dcec9ba4
1 changed files with 3 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue