xref: /linux/arch/mips/mm/extable.c (revision 8fa5723aa7e053d498336b48448b292fc2e0458b)
1 /*
2  * linux/arch/mips/mm/extable.c
3  */
4 #include <linux/module.h>
5 #include <linux/spinlock.h>
6 #include <asm/branch.h>
7 #include <asm/uaccess.h>
8 
9 int fixup_exception(struct pt_regs *regs)
10 {
11 	const struct exception_table_entry *fixup;
12 
13 	fixup = search_exception_tables(exception_epc(regs));
14 	if (fixup) {
15 		regs->cp0_epc = fixup->nextinsn;
16 
17 		return 1;
18 	}
19 
20 	return 0;
21 }
22