/*1* linux/arch/unicore32/mm/extable.c2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/11#include <linux/module.h>12#include <linux/uaccess.h>1314int fixup_exception(struct pt_regs *regs)15{16const struct exception_table_entry *fixup;1718fixup = search_exception_tables(instruction_pointer(regs));19if (fixup)20regs->UCreg_pc = fixup->fixup;2122return fixup != NULL;23}242526