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