Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Hirokazu Takata | 1cc1265 | 2005-06-21 17:16:15 -0700 | [diff] [blame] | 2 | * linux/arch/m32r/mm/extable.c |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | */ |
| 4 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <linux/module.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #include <asm/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(regs->bpc); |
| 13 | if (fixup) { |
| 14 | regs->bpc = fixup->fixup; |
| 15 | return 1; |
| 16 | } |
| 17 | |
| 18 | return 0; |
| 19 | } |