summaryrefslogtreecommitdiffstats
path: root/arch/um/include/arch.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-05-06 23:51:24 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 21:13:02 +0200
commit5d86456d3852cb95a38d2b23fe01cede54984ba5 (patch)
treea0e973d629717d93c7b4dc32ad7afd9e64f5f974 /arch/um/include/arch.h
parentuml: kernel_thread shouldn't panic (diff)
downloadlinux-5d86456d3852cb95a38d2b23fe01cede54984ba5.tar.xz
linux-5d86456d3852cb95a38d2b23fe01cede54984ba5.zip
uml: tidy fault code
Tidying in preparation for the segfault register dumping patch which follows. void * pointers are changed to union uml_pt_regs *. This makes the types match reality, except in arch_fixup, which is changed to operate on a union uml_pt_regs. This fixes a bug in the call from segv_handler, which passes a union uml_pt_regs, to segv, which expects to pass a struct sigcontext to arch_fixup. Whitespace and other style fixes. There's also a errno printk fix. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include/arch.h')
-rw-r--r--arch/um/include/arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/arch.h b/arch/um/include/arch.h
index 8e11dd7c1adb..10ad52daa8c5 100644
--- a/arch/um/include/arch.h
+++ b/arch/um/include/arch.h
@@ -9,7 +9,7 @@
#include "sysdep/ptrace.h"
extern void arch_check_bugs(void);
-extern int arch_fixup(unsigned long address, void *sc_ptr);
+extern int arch_fixup(unsigned long address, union uml_pt_regs *regs);
extern int arch_handle_signal(int sig, union uml_pt_regs *regs);
#endif