Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / arch / metag / mm / extable.c
blob9b92d3ad7f9c598b263414c53f73ddef4f47d9c6
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/extable.h>
3 #include <linux/uaccess.h>
5 int fixup_exception(struct pt_regs *regs)
7 const struct exception_table_entry *fixup;
8 unsigned long pc = instruction_pointer(regs);
10 fixup = search_exception_tables(pc);
11 if (fixup)
12 regs->ctx.CurrPC = fixup->fixup;
14 return fixup != NULL;