[PATCH] ppc64: Add PTRACE_{GET|SET}VRREGS
authorRobert Jennings <rcjenn@austin.ibm.com>
Sat, 10 Sep 2005 06:01:07 +0000 (16:01 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 12 Sep 2005 07:19:11 +0000 (17:19 +1000)
commit962bca7f389229a30ced441d7b37f55f203006a2
tree9824ae5b923a477fb4a671eda60822f80610861e
parent4267292b0f368c1633ff3316a53b5f7fbada95f8
[PATCH] ppc64: Add PTRACE_{GET|SET}VRREGS

The ptrace get and set methods for VMX/Altivec registers present in the
ppc tree were missing for ppc64.  This patch adds the 32-bit and
64-bit methods.  Updated with the suggestions from Anton following the lines
of his code snippet.

Added:
 - flush_altivec_to_thread calls as suggested by Anton
 - piecewise copy of structure to preserve 32-bit vrsave data as per
   Anton

(I consolidated the 32 and 64bit versions with 2 helper macros - Anton)

Signed-off-by: Robert C Jennings <rcjenn@austin.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/kernel/ptrace.c
arch/ppc64/kernel/ptrace32.c
include/asm-ppc64/ptrace-common.h