]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/sh/mm/extable_32.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm...
[karo-tx-linux.git] / arch / sh / mm / extable_32.c
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 }