diff options
Diffstat (limited to 'arch/um/os-Linux/registers.c')
-rw-r--r-- | arch/um/os-Linux/registers.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/um/os-Linux/registers.c b/arch/um/os-Linux/registers.c index ce0b791160e..14732f98e0a 100644 --- a/arch/um/os-Linux/registers.c +++ b/arch/um/os-Linux/registers.c @@ -1,13 +1,14 @@ /* * Copyright (C) 2004 PathScale, Inc + * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL */ #include <errno.h> #include <string.h> #include <sys/ptrace.h> -#include "user.h" #include "sysdep/ptrace.h" +#include "user.h" /* This is set once at boot time and not changed thereafter */ @@ -23,7 +24,7 @@ void save_registers(int pid, struct uml_pt_regs *regs) int err; err = ptrace(PTRACE_GETREGS, pid, 0, regs->regs); - if(err < 0) + if (err < 0) panic("save_registers - saving registers failed, errno = %d\n", errno); } @@ -33,7 +34,7 @@ void restore_registers(int pid, struct uml_pt_regs *regs) int err; err = ptrace(PTRACE_SETREGS, pid, 0, regs->regs); - if(err < 0) + if (err < 0) panic("restore_registers - saving registers failed, " "errno = %d\n", errno); } @@ -43,7 +44,7 @@ void init_registers(int pid) int err; err = ptrace(PTRACE_GETREGS, pid, 0, exec_regs); - if(err) + if (err) panic("check_ptrace : PTRACE_GETREGS failed, errno = %d", errno); } |