i386/x86_64: move headers to include/asm-x86
[deliverable/linux.git] / arch / um / sys-x86_64 / fault.c
CommitLineData
1da177e4
LT
1/*
2 * Copyright 2003 PathScale, Inc.
3 *
4 * Licensed under the GPL
5 */
6
5d86456d 7#include "sysdep/ptrace.h"
1da177e4 8
5d86456d
JD
9/* These two are from asm-um/uaccess.h and linux/module.h, check them. */
10struct exception_table_entry
1da177e4 11{
5d86456d
JD
12 unsigned long insn;
13 unsigned long fixup;
14};
15
16const struct exception_table_entry *search_exception_tables(unsigned long add);
17int arch_fixup(unsigned long address, union uml_pt_regs *regs)
18{
19 const struct exception_table_entry *fixup;
20
21 fixup = search_exception_tables(address);
22 if(fixup != 0){
23 UPT_IP(regs) = fixup->fixup;
24 return(1);
25 }
1da177e4
LT
26 return(0);
27}
This page took 0.240287 seconds and 5 git commands to generate.