/*1* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)2* Licensed under the GPL3*/45#include "sysdep/ptrace.h"67/* These two are from asm-um/uaccess.h and linux/module.h, check them. */8struct exception_table_entry9{10unsigned long insn;11unsigned long fixup;12};1314const struct exception_table_entry *search_exception_tables(unsigned long add);1516/* Compare this to arch/i386/mm/extable.c:fixup_exception() */17int arch_fixup(unsigned long address, struct uml_pt_regs *regs)18{19const struct exception_table_entry *fixup;2021fixup = search_exception_tables(address);22if (fixup != 0) {23UPT_IP(regs) = fixup->fixup;24return 1;25}26return 0;27}282930