Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg...
[linux-2.6] / arch / mips / mm / extable.c
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 }