OMAP3 SRF: Add CORE rate table param in OMAP-PM
[linux-ginger.git] / arch / um / sys-x86_64 / fault.c
blobce85117fc64eeb6fc33f7e9534169372152e0634
1 /*
2 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
7 #include "sysdep/ptrace.h"
9 /* These two are from asm-um/uaccess.h and linux/module.h, check them. */
10 struct exception_table_entry
12 unsigned long insn;
13 unsigned long fixup;
16 const struct exception_table_entry *search_exception_tables(unsigned long add);
18 int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
20 const struct exception_table_entry *fixup;
22 fixup = search_exception_tables(address);
23 if (fixup != 0) {
24 UPT_IP(regs) = fixup->fixup;
25 return 1;
27 return 0;