2011-01-15 03:17:56 -07:00
|
|
|
/*
|
|
|
|
* linux/arch/unicore32/mm/extable.c
|
|
|
|
*
|
|
|
|
* Code specific to PKUnity SoC and UniCore ISA
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001-2010 GUAN Xue-tao
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
2017-01-10 12:13:29 -07:00
|
|
|
#include <linux/extable.h>
|
2011-01-15 03:17:56 -07:00
|
|
|
#include <linux/uaccess.h>
|
|
|
|
|
|
|
|
int fixup_exception(struct pt_regs *regs)
|
|
|
|
{
|
|
|
|
const struct exception_table_entry *fixup;
|
|
|
|
|
|
|
|
fixup = search_exception_tables(instruction_pointer(regs));
|
|
|
|
if (fixup)
|
|
|
|
regs->UCreg_pc = fixup->fixup;
|
|
|
|
|
|
|
|
return fixup != NULL;
|
|
|
|
}
|