/*1* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)2* Licensed under the GPL3*/45#include <arch.h>6#include <sysdep/ptrace.h>78/* These two are from asm-um/uaccess.h and linux/module.h, check them. */9struct exception_table_entry10{11unsigned long insn;12unsigned long fixup;13};1415const struct exception_table_entry *search_exception_tables(unsigned long add);1617/* Compare this to arch/i386/mm/extable.c:fixup_exception() */18int arch_fixup(unsigned long address, struct uml_pt_regs *regs)19{20const struct exception_table_entry *fixup;2122fixup = search_exception_tables(address);23if (fixup) {24UPT_IP(regs) = fixup->fixup;25return 1;26}27return 0;28}293031