extable.c 297 B

12345678910111213141516171819
  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. }