diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-05-06 17:51:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:13:02 -0400 |
commit | 5d86456d3852cb95a38d2b23fe01cede54984ba5 (patch) | |
tree | a0e973d629717d93c7b4dc32ad7afd9e64f5f974 /arch/um/include/kern_util.h | |
parent | ccdddb57874522e6b267204f9c5e94ba7d9d66b0 (diff) |
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/kern_util.h')
-rw-r--r-- | arch/um/include/kern_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index ae434a9b400d..092a2841556f 100644 --- a/arch/um/include/kern_util.h +++ b/arch/um/include/kern_util.h | |||
@@ -44,7 +44,7 @@ extern unsigned long alloc_stack(int order, int atomic); | |||
44 | extern int do_signal(void); | 44 | extern int do_signal(void); |
45 | extern int is_stack_fault(unsigned long sp); | 45 | extern int is_stack_fault(unsigned long sp); |
46 | extern unsigned long segv(struct faultinfo fi, unsigned long ip, | 46 | extern unsigned long segv(struct faultinfo fi, unsigned long ip, |
47 | int is_user, void *sc); | 47 | int is_user, union uml_pt_regs *regs); |
48 | extern int handle_page_fault(unsigned long address, unsigned long ip, | 48 | extern int handle_page_fault(unsigned long address, unsigned long ip, |
49 | int is_write, int is_user, int *code_out); | 49 | int is_write, int is_user, int *code_out); |
50 | extern void syscall_ready(void); | 50 | extern void syscall_ready(void); |