Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[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);
ba180fd4 17
77bf4400 18int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
5d86456d
JD
19{
20 const struct exception_table_entry *fixup;
21
22 fixup = search_exception_tables(address);
ba180fd4 23 if (fixup != 0) {
5d86456d 24 UPT_IP(regs) = fixup->fixup;
ba180fd4 25 return 1;
5d86456d 26 }
ba180fd4 27 return 0;
1da177e4 28}
This page took 0.347914 seconds and 5 git commands to generate.