summaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64/fault.c
diff options
context:
space:
mode:
authorJeff Dike2007-10-16 10:27:00 +0200
committerLinus Torvalds2007-10-16 18:43:05 +0200
commitba180fd437156f7fd8cfb2fdd021d949eeef08d6 (patch)
treeb9f38b9cdd7a5b1aacf00341d1948314663c5871 /arch/um/sys-x86_64/fault.c
parentuml: remove code made redundant by CHOOSE_MODE removal (diff)
downloadkernel-qcow2-linux-ba180fd437156f7fd8cfb2fdd021d949eeef08d6.tar.gz
kernel-qcow2-linux-ba180fd437156f7fd8cfb2fdd021d949eeef08d6.tar.xz
kernel-qcow2-linux-ba180fd437156f7fd8cfb2fdd021d949eeef08d6.zip
uml: style fixes pass 3
Formatting changes in the files which have been changed in the course of folding foo_skas functions into their callers. These include: copyright updates header file trimming style fixes adding severity to printks These changes should be entirely non-functional. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/sys-x86_64/fault.c')
-rw-r--r--arch/um/sys-x86_64/fault.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/um/sys-x86_64/fault.c b/arch/um/sys-x86_64/fault.c
index 79f37ef3dceb..ce85117fc64e 100644
--- a/arch/um/sys-x86_64/fault.c
+++ b/arch/um/sys-x86_64/fault.c
@@ -14,14 +14,15 @@ struct exception_table_entry
};
const struct exception_table_entry *search_exception_tables(unsigned long add);
+
int arch_fixup(unsigned long address, struct uml_pt_regs *regs)
{
const struct exception_table_entry *fixup;
fixup = search_exception_tables(address);
- if(fixup != 0){
+ if (fixup != 0) {
UPT_IP(regs) = fixup->fixup;
- return(1);
+ return 1;
}
- return(0);
+ return 0;
}