Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 16:58:57 -0400
From:      Alexander Kabaev <ak03@gte.com>
To:        Mark Kettenis <kettenis@chello.nl>
Cc:        freebsd-arch@FreeBSD.ORG
Subject:   Re: ptrace(2) and vector registers
Message-ID:  <20021021165857.185716fb.ak03@gte.com>
In-Reply-To: <200210212039.g9LKdMjS001116@elgar.kettenis.dyndns.org>
References:  <200210212039.g9LKdMjS001116@elgar.kettenis.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Oct 2002 22:39:22 +0200 (CEST)
Mark Kettenis <kettenis@chello.nl> wrote:

> s.
> 
>  NetBSD already has support for the SSE registers.  There is `struct
>  xmmregs' in <machine/reg.h> and PT_GETXMMREGS & PT_SETXMMREGS
>  reequests in <machine/ptrace.h>.  I have to say that I'm not terribly
>  happy with `struct xmmregs', since it ends with an 's', where the
>  other structs in <machine/ptrace.h> (`struct reg' and `struct fpreg')
>  don't.  But the most inportant thing is that these names are tied to
>  the x86.  Since both SSE and AltiVec are some sort of vector registers
>  I'd like to propose `struct vreg' and PT_GETVREGS & PT_SETVREGS as
>  alternatives.  NetBSD/powerpc already defines `struct vreg'.

Please take a look at linux_ptrace.c. I tried to support Linux-specific
PTRACE_{GET|SET}FPXREGS calls there. We might want to simply reuse that for
FreeBSD syscall.

-- 
Alexander Kabaev

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021021165857.185716fb.ak03>