diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-02-10 04:44:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:24 -0500 |
commit | 6c59e2f593d0c00c78ec48146de6eaf52a342dd5 (patch) | |
tree | 09eb3e844d927ff79b19079390686da441624240 /arch | |
parent | c538b391a7e8f3cb5d7756ec68d1864429d26a0c (diff) |
[PATCH] uml: register handling formatting fixes
Formatting fixes in the register handling code.
Signed-off-by: Jeff Dike <jdike@addtoit.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')
-rw-r--r-- | arch/um/os-Linux/sys-i386/registers.c | 14 | ||||
-rw-r--r-- | arch/um/os-Linux/sys-x86_64/registers.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/arch/um/os-Linux/sys-i386/registers.c b/arch/um/os-Linux/sys-i386/registers.c index 7cd0369e02b3..79cd93c8c5ed 100644 --- a/arch/um/os-Linux/sys-i386/registers.c +++ b/arch/um/os-Linux/sys-i386/registers.c | |||
@@ -34,27 +34,27 @@ void init_thread_registers(union uml_pt_regs *to) | |||
34 | int save_fp_registers(int pid, unsigned long *fp_regs) | 34 | int save_fp_registers(int pid, unsigned long *fp_regs) |
35 | { | 35 | { |
36 | if(ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) | 36 | if(ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) |
37 | return(-errno); | 37 | return -errno; |
38 | return(0); | 38 | return 0; |
39 | } | 39 | } |
40 | 40 | ||
41 | int restore_fp_registers(int pid, unsigned long *fp_regs) | 41 | int restore_fp_registers(int pid, unsigned long *fp_regs) |
42 | { | 42 | { |
43 | if(ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) | 43 | if(ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) |
44 | return(-errno); | 44 | return -errno; |
45 | return(0); | 45 | return 0; |
46 | } | 46 | } |
47 | 47 | ||
48 | static int move_registers(int pid, int int_op, union uml_pt_regs *regs, | 48 | static int move_registers(int pid, int int_op, union uml_pt_regs *regs, |
49 | int fp_op, unsigned long *fp_regs) | 49 | int fp_op, unsigned long *fp_regs) |
50 | { | 50 | { |
51 | if(ptrace(int_op, pid, 0, regs->skas.regs) < 0) | 51 | if(ptrace(int_op, pid, 0, regs->skas.regs) < 0) |
52 | return(-errno); | 52 | return -errno; |
53 | 53 | ||
54 | if(ptrace(fp_op, pid, 0, fp_regs) < 0) | 54 | if(ptrace(fp_op, pid, 0, fp_regs) < 0) |
55 | return(-errno); | 55 | return -errno; |
56 | 56 | ||
57 | return(0); | 57 | return 0; |
58 | } | 58 | } |
59 | 59 | ||
60 | void save_registers(int pid, union uml_pt_regs *regs) | 60 | void save_registers(int pid, union uml_pt_regs *regs) |
diff --git a/arch/um/os-Linux/sys-x86_64/registers.c b/arch/um/os-Linux/sys-x86_64/registers.c index cb8e8a263280..a2d7e0c603f7 100644 --- a/arch/um/os-Linux/sys-x86_64/registers.c +++ b/arch/um/os-Linux/sys-x86_64/registers.c | |||
@@ -27,12 +27,12 @@ static int move_registers(int pid, int int_op, int fp_op, | |||
27 | union uml_pt_regs *regs) | 27 | union uml_pt_regs *regs) |
28 | { | 28 | { |
29 | if(ptrace(int_op, pid, 0, regs->skas.regs) < 0) | 29 | if(ptrace(int_op, pid, 0, regs->skas.regs) < 0) |
30 | return(-errno); | 30 | return -errno; |
31 | 31 | ||
32 | if(ptrace(fp_op, pid, 0, regs->skas.fp) < 0) | 32 | if(ptrace(fp_op, pid, 0, regs->skas.fp) < 0) |
33 | return(-errno); | 33 | return -errno; |
34 | 34 | ||
35 | return(0); | 35 | return 0; |
36 | } | 36 | } |
37 | 37 | ||
38 | void save_registers(int pid, union uml_pt_regs *regs) | 38 | void save_registers(int pid, union uml_pt_regs *regs) |