UML - register handling formatting fixes
PATCH 6/7 UML - register handling formatting fixes
Formatting fixes in the register handling code.
Signed-off-by Jeff Dike <[email protected]>
--
arch/um/os-Linux/sys-i386/registers.c | 14 +++++++------- arch/um/os-Linux/sys-x86_64/registers.c | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-)
arch/um/os-Linux/sys-i386/registers.c +7 -7
@@ -34,27 +34,27 @@ void init_thread_registers(union uml_pt_int save_fp_registers (int pid,unsigned long *fp_regs) {if (ptrace (PTRACE_GETFPREGS , pid,0 , fp_regs) <0 ) -return (-errno); -return (0 ); +return -errno; +return 0 ; }int restore_fp_registers (int pid,unsigned long *fp_regs) {if (ptrace (PTRACE_SETFPREGS , pid,0 , fp_regs) <0 ) -return (-errno); -return (0 ); +return -errno; +return 0 ; }static int move_registers (int pid,int int_op,union uml_pt_regs *regs,int fp_op,unsigned long *fp_regs) {if (ptrace (int_op, pid,0 , regs->skas.regs) <0 ) -return (-errno); +return -errno;if (ptrace (fp_op, pid,0 , fp_regs) <0 ) -return (-errno); +return -errno; -return (0 ); +return 0 ; }void save_registers (int pid,union uml_pt_regs *regs)
arch/um/os-Linux/sys-x86_64/registers.c +3 -3
@@ -27,12 +27,12 @@ static int move_registers(int pid, int i union uml_pt_regs *regs) {if (ptrace (int_op, pid,0 , regs->skas.regs) <0 ) -return (-errno); +return -errno;if (ptrace (fp_op, pid,0 , regs->skas.fp) <0 ) -return (-errno); +return -errno; -return (0 ); +return 0 ; }void save_registers (int pid,union uml_pt_regs *regs)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel