Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47484
b: refs/heads/master
c: 6c59e2f
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 11, 2007
1 parent 6f92305 commit dd52f7f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c538b391a7e8f3cb5d7756ec68d1864429d26a0c
refs/heads/master: 6c59e2f593d0c00c78ec48146de6eaf52a342dd5
14 changes: 7 additions & 7 deletions trunk/arch/um/os-Linux/sys-i386/registers.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ void init_thread_registers(union uml_pt_regs *to)
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)
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/um/os-Linux/sys-x86_64/registers.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ static int move_registers(int pid, int int_op, int fp_op,
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)
Expand Down

0 comments on commit dd52f7f

Please sign in to comment.