Linux-2.6.12-rc2
[linux-flexiantxendom0-natty.git] / 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 }