extable.c 366 B

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