Linux 4.19-rc7
[linux-2.6/btrfs-unstable.git] / arch / unicore32 / mm / extable.c
blobc562046947ba5d50d8d36e72b1228fb63cec595b
1 /*
2 * linux/arch/unicore32/mm/extable.c
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #include <linux/extable.h>
13 #include <linux/uaccess.h>
15 int fixup_exception(struct pt_regs *regs)
17 const struct exception_table_entry *fixup;
19 fixup = search_exception_tables(instruction_pointer(regs));
20 if (fixup)
21 regs->UCreg_pc = fixup->fixup;
23 return fixup != NULL;