Linux 2.6.13-rc4
[linux-2.6/next.git] / arch / mips / mm / extable.c
blob297fb9f390dc145ad1cb6bce82dc7a32409fc36d
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>
9 int fixup_exception(struct pt_regs *regs)
11 const struct exception_table_entry *fixup;
13 fixup = search_exception_tables(exception_epc(regs));
14 if (fixup) {
15 regs->cp0_epc = fixup->nextinsn;
17 return 1;
20 return 0;