extable.c 364 B

1234567891011121314151617
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2005-2017 Andes Technology Corporation
  3. #include <linux/extable.h>
  4. #include <linux/uaccess.h>
  5. int fixup_exception(struct pt_regs *regs)
  6. {
  7. const struct exception_table_entry *fixup;
  8. fixup = search_exception_tables(instruction_pointer(regs));
  9. if (fixup)
  10. regs->ipc = fixup->fixup;
  11. return fixup != NULL;
  12. }