extable.c 336 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * linux/arch/m32r/mm/extable.c
  4. */
  5. #include <linux/extable.h>
  6. #include <linux/uaccess.h>
  7. int fixup_exception(struct pt_regs *regs)
  8. {
  9. const struct exception_table_entry *fixup;
  10. fixup = search_exception_tables(regs->bpc);
  11. if (fixup) {
  12. regs->bpc = fixup->fixup;
  13. return 1;
  14. }
  15. return 0;
  16. }