2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* linux/arch/sh/mm/extable.c
|
|
|
|
* Taken from:
|
|
|
|
* linux/arch/i386/mm/extable.c
|
|
|
|
*/
|
|
|
|
|
2016-07-24 02:01:45 +08:00
|
|
|
#include <linux/extable.h>
|
2016-12-25 03:46:01 +08:00
|
|
|
#include <linux/uaccess.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2017-02-03 17:03:42 +08:00
|
|
|
#include <asm/ptrace.h>
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
int fixup_exception(struct pt_regs *regs)
|
|
|
|
{
|
|
|
|
const struct exception_table_entry *fixup;
|
|
|
|
|
|
|
|
fixup = search_exception_tables(regs->pc);
|
|
|
|
if (fixup) {
|
|
|
|
regs->pc = fixup->fixup;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|