extable_32.c 343 B

123456789101112131415161718192021
  1. /*
  2. * linux/arch/sh/mm/extable.c
  3. * Taken from:
  4. * linux/arch/i386/mm/extable.c
  5. */
  6. #include <linux/module.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->pc);
  12. if (fixup) {
  13. regs->pc = fixup->fixup;
  14. return 1;
  15. }
  16. return 0;
  17. }