1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/unicore32/mm/extable.c
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
9 #include <linux/extable.h>
10 #include <linux/uaccess.h>
12 int fixup_exception(struct pt_regs
*regs
)
14 const struct exception_table_entry
*fixup
;
16 fixup
= search_exception_tables(instruction_pointer(regs
));
18 regs
->UCreg_pc
= fixup
->fixup
;