diff options
Diffstat (limited to 'arch/mips/mm/extable.c')
-rw-r--r-- | arch/mips/mm/extable.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/mips/mm/extable.c b/arch/mips/mm/extable.c new file mode 100644 index 000000000000..297fb9f390dc --- /dev/null +++ b/arch/mips/mm/extable.c | |||
@@ -0,0 +1,21 @@ | |||
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 | } | ||