blob: 1743f23d49a320a8d1e0dec3b63942d8c8475e80 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Hirokazu Takata1cc12652005-06-21 17:16:15 -07002 * linux/arch/m32r/mm/extable.c
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 */
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#include <linux/module.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#include <asm/uaccess.h>
7
8int fixup_exception(struct pt_regs *regs)
9{
10 const struct exception_table_entry *fixup;
11
12 fixup = search_exception_tables(regs->bpc);
13 if (fixup) {
14 regs->bpc = fixup->fixup;
15 return 1;
16 }
17
18 return 0;
19}