From owner-freebsd-arch Mon Oct 21 13:59: 6 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8358A37B401 for ; Mon, 21 Oct 2002 13:59:05 -0700 (PDT) Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5F6B43E6A for ; Mon, 21 Oct 2002 13:59:04 -0700 (PDT) (envelope-from ak03@gte.com) Received: from kanpc.gte.com (localhost [IPv6:::1]) by h132-197-179-27.gte.com (8.12.6/8.12.6) with ESMTP id g9LKwwkY078444; Mon, 21 Oct 2002 16:58:58 -0400 (EDT) (envelope-from ak03@kanpc.gte.com) Received: (from ak03@localhost) by kanpc.gte.com (8.12.6/8.12.6/Submit) id g9LKwvFq078443; Mon, 21 Oct 2002 16:58:57 -0400 (EDT) Date: Mon, 21 Oct 2002 16:58:57 -0400 From: Alexander Kabaev To: Mark Kettenis 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> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.8.5claws7 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 21 Oct 2002 22:39:22 +0200 (CEST) Mark Kettenis wrote: > s. > > NetBSD already has support for the SSE registers. There is `struct > xmmregs' in and PT_GETXMMREGS & PT_SETXMMREGS > reequests in . I have to say that I'm not terribly > happy with `struct xmmregs', since it ends with an 's', where the > other structs in (`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