xref: /openbmc/linux/arch/sh/mm/extable_32.c (revision 5d0e4d78)
1 /*
2  * linux/arch/sh/mm/extable.c
3  *  Taken from:
4  *   linux/arch/i386/mm/extable.c
5  */
6 
7 #include <linux/extable.h>
8 #include <linux/uaccess.h>
9 
10 #include <asm/ptrace.h>
11 
12 int fixup_exception(struct pt_regs *regs)
13 {
14 	const struct exception_table_entry *fixup;
15 
16 	fixup = search_exception_tables(regs->pc);
17 	if (fixup) {
18 		regs->pc = fixup->fixup;
19 		return 1;
20 	}
21 
22 	return 0;
23 }
24