From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- arch/metag/mm/extable.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 arch/metag/mm/extable.c (limited to 'arch/metag/mm/extable.c') diff --git a/arch/metag/mm/extable.c b/arch/metag/mm/extable.c new file mode 100644 index 00000000..2a21eaeb --- /dev/null +++ b/arch/metag/mm/extable.c @@ -0,0 +1,15 @@ + +#include +#include + +int fixup_exception(struct pt_regs *regs) +{ + const struct exception_table_entry *fixup; + unsigned long pc = instruction_pointer(regs); + + fixup = search_exception_tables(pc); + if (fixup) + regs->ctx.CurrPC = fixup->fixup; + + return fixup != NULL; +} -- cgit v1.3.1