[POWERPC] Rename 44x bootwrapper
[wrt350n-kernel.git] / arch / um / sys-i386 / fault.c
blob745b4fd49e9f40fbf366bddd8cd3a3314b2fb8d0
1 /*
2 * Copyright (C) 2002 - 2004 Jeff Dike (jdike@addtoit.com)
3 * Licensed under the GPL
4 */
6 #include "sysdep/ptrace.h"
8 /* These two are from asm-um/uaccess.h and linux/module.h, check them. */
9 struct exception_table_entry
11 unsigned long insn;
12 unsigned long fixup;
15 const struct exception_table_entry *search_exception_tables(unsigned long add);
17 /* Compare this to arch/i386/mm/extable.c:fixup_exception() */
18 int arch_fixup(unsigned long address, union 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);