Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6dcec9b authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Make __declare_dbe_table static and avoid it getting optimized away

parent 102fa15c
Loading
Loading
Loading
Loading
+3 −7
Original line number Original line Diff line number Diff line
@@ -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 __start___dbe_table[];
extern const struct exception_table_entry __stop___dbe_table[];
extern const struct exception_table_entry __stop___dbe_table[];


void __declare_dbe_table(void)
__asm__(
{
"	.section	__dbe_table, \"a\"\n"
	__asm__ __volatile__(
"	.previous			\n");
	".section\t__dbe_table,\"a\"\n\t"
	".previous"
	);
}


/* Given an address, look for it in the exception tables. */
/* Given an address, look for it in the exception tables. */
static const struct exception_table_entry *search_dbe_tables(unsigned long addr)
static const struct exception_table_entry *search_dbe_tables(unsigned long addr)