extable.c 352 B

12345678910111213141516171819202122
  1. /*
  2. * linux/arch/i386/mm/extable.c
  3. */
  4. #include <linux/config.h>
  5. #include <linux/module.h>
  6. #include <linux/spinlock.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(regs->bpc);
  12. if (fixup) {
  13. regs->bpc = fixup->fixup;
  14. return 1;
  15. }
  16. return 0;
  17. }