extable.c 297 B

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