Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346987
b: refs/heads/master
c: 9af6254
h: refs/heads/master
i:
  346985: a5588e2
  346983: 652cf79
v: v3
  • Loading branch information
Simon Marchi authored and Chris Metcalf committed Dec 18, 2012
1 parent 802dbe4 commit 46568a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 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: 7be68284bd201174bc6663b010cb56867a874276
refs/heads/master: 9af62547675b04ef8aa5eda5f60450c01f598f2a
15 changes: 6 additions & 9 deletions trunk/arch/tile/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,15 @@ long arch_ptrace(struct task_struct *child, long request,
break;

case PTRACE_GETREGS: /* Get all registers from the child. */
if (copy_to_user(datap, getregs(child, &copyregs),
sizeof(struct pt_regs)) == 0) {
ret = 0;
}
ret = copy_regset_to_user(child, &tile_user_regset_view,
REGSET_GPR, 0,
sizeof(struct pt_regs), datap);
break;

case PTRACE_SETREGS: /* Set all registers in the child. */
if (copy_from_user(&copyregs, datap,
sizeof(struct pt_regs)) == 0) {
putregs(child, &copyregs);
ret = 0;
}
ret = copy_regset_from_user(child, &tile_user_regset_view,
REGSET_GPR, 0,
sizeof(struct pt_regs), datap);
break;

case PTRACE_GETFPREGS: /* Get the child FPU state. */
Expand Down

0 comments on commit 46568a3

Please sign in to comment.