[PATCH] Add PTRACE_{GET|SET}VRREGS

Steve Munroe sjmunroe at us.ibm.com
Thu Sep 15 00:35:34 EST 2005


Kumar Gala <kumar.gala at freescale.com> wrote on 09/14/2005 12:18:11 AM:

> 
> On Sep 13, 2005, at 3:19 PM, Steve Munroe wrote:
> 
> > Changing you internal structures is OK with me. But don't change the
> > size/alignment for PTRACE_GETVRREGS and PTRACE_SETVRREGS
> 
> Which is the same for ppc32 and ppc64, correct?
> 

/*
 * Get/set all the altivec registers vr0..vr31, vscr, vrsave, in one go. 
 * The transfer totals 34 quadword.  Quadwords 0-31 contain the 
 * corresponding vector registers.  Quadword 32 contains the vscr as the 
 * last word (offset 12) within that quadword.  Quadword 33 contains the 
 * vrsave as the first word (offset 0) within the quadword.
 *
 * This definition of the VMX state is compatible with the current PPC32 
 * ptrace interface.  This allows signal handling and ptrace to use the 
same 
 * structures.  This also simplifies the implementation of a bi-arch 
 * (combined (32- and 64-bit) gdb.
 */

This definition.

Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center



More information about the Linuxppc64-dev mailing list