Nicholas Flintham | 1e3d311 | 2013-04-10 10:48:38 +0100 | [diff] [blame^] | 1 | #include <linux/module.h> |
2 | #include <linux/uaccess.h> | ||||
3 | |||||
4 | int fixup_exception(struct pt_regs *regs) | ||||
5 | { | ||||
6 | const struct exception_table_entry *fixup; | ||||
7 | |||||
8 | fixup = search_exception_tables(instruction_pointer(regs)); | ||||
9 | if (fixup) | ||||
10 | regs->ARM_pc = fixup->fixup; | ||||
11 | |||||
12 | return fixup != NULL; | ||||
13 | } |