Skip to content

Commit

Permalink
sparc64: Fix bug in PTRACE_SETFPREGS64 handling.
Browse files Browse the repository at this point in the history
From: Chris Torek <chris.torek@windriver.com>

>The SPARC64 kernel code for PTRACE_SETFPREGS64 appears to be an exact copy 
>of that for PTRACE_GETFPREGS64.  This means that gdbserver and native 
>64-bit GDB cannot set floating-point registers.

It looks like a simple typo.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Chris Torek authored and David S. Miller committed Dec 3, 2008
1 parent f6f7b52 commit ee4ee52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
break;

case PTRACE_SETFPREGS64:
ret = copy_regset_to_user(child, view, REGSET_FP,
ret = copy_regset_from_user(child, view, REGSET_FP,
0 * sizeof(u64),
33 * sizeof(u64),
fps);
Expand Down

0 comments on commit ee4ee52

Please sign in to comment.