| rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 | 
| 2 | /* | ||||
| 3 | * linux/arch/m32r/mm/extable.c | ||||
| 4 | */ | ||||
| 5 | |||||
| 6 | #include <linux/extable.h> | ||||
| 7 | #include <linux/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(regs->bpc); | ||||
| 14 | if (fixup) { | ||||
| 15 | regs->bpc = fixup->fixup; | ||||
| 16 | return 1; | ||||
| 17 | } | ||||
| 18 | |||||
| 19 | return 0; | ||||
| 20 | } | ||||