2 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
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
16 const struct exception_table_entry
*search_exception_tables(unsigned long add
);
18 /* Compare this to arch/i386/mm/extable.c:fixup_exception() */
19 int arch_fixup(unsigned long address
, struct uml_pt_regs
*regs
)
21 const struct exception_table_entry
*fixup
;
23 fixup
= search_exception_tables(address
);
25 UPT_IP(regs
) = fixup
->fixup
;