Merge tag 'h8300-for-linus-20190617' of git://git.sourceforge.jp/gitroot/uclinux...
[linux-2.6-microblaze.git] / arch / unicore32 / mm / extable.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * linux/arch/unicore32/mm/extable.c
4  *
5  * Code specific to PKUnity SoC and UniCore ISA
6  *
7  * Copyright (C) 2001-2010 GUAN Xue-tao
8  */
9 #include <linux/extable.h>
10 #include <linux/uaccess.h>
11
12 int fixup_exception(struct pt_regs *regs)
13 {
14         const struct exception_table_entry *fixup;
15
16         fixup = search_exception_tables(instruction_pointer(regs));
17         if (fixup)
18                 regs->UCreg_pc = fixup->fixup;
19
20         return fixup != NULL;
21 }