http://www.hht-eu.com/pls/hht/docs/F3140/bcm963xx_Speedport500V.0.09.04L.300L01.V27_c...
[bcm963xx.git] / kernel / linux / arch / sh / mm / extable.c
1 /* $Id: extable.c,v 1.1.1.1 2005/04/29 01:41:12 echo 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 }