ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / sh / mm / extable.c
1 /* $Id: extable.c,v 1.3 2003/05/06 23:28:50 lethal Exp $
2  *
3  * linux/arch/sh/mm/extable.c
4  *  Taken from:
5  *   linux/arch/i386/mm/extable.c
6  */
7
8 #include <linux/config.h>
9 #include <linux/module.h>
10 #include <asm/uaccess.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 }