diff options
Diffstat (limited to 'arch/arm/mm/extable.c')
-rw-r--r-- | arch/arm/mm/extable.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mm/extable.c b/arch/arm/mm/extable.c new file mode 100644 index 000000000000..9592c3ee4cb2 --- /dev/null +++ b/arch/arm/mm/extable.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mm/extable.c | ||
3 | */ | ||
4 | #include <linux/module.h> | ||
5 | #include <asm/uaccess.h> | ||
6 | |||
7 | int fixup_exception(struct pt_regs *regs) | ||
8 | { | ||
9 | const struct exception_table_entry *fixup; | ||
10 | |||
11 | fixup = search_exception_tables(instruction_pointer(regs)); | ||
12 | if (fixup) | ||
13 | regs->ARM_pc = fixup->fixup; | ||
14 | |||
15 | return fixup != NULL; | ||
16 | } | ||