From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 31 09:14:40 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CC8616A4DF for ; Mon, 31 Jul 2006 09:14:40 +0000 (UTC) (envelope-from matt@genesi-usa.com) Received: from mail.genesippc.com (mithrandir.softwarenexus.net [66.98.186.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5126F43D49 for ; Mon, 31 Jul 2006 09:14:40 +0000 (GMT) (envelope-from matt@genesi-usa.com) Received: from p54b0f7a9.dip.t-dialin.net ([84.176.247.169] helo=yukito) by mail.genesippc.com with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1G7TmF-000Cus-SG; Mon, 31 Jul 2006 09:09:32 +0000 From: "Matt Sealey" To: "'Marcel Moolenaar'" , Date: Mon, 31 Jul 2006 11:14:33 +0200 Organization: Genesi Message-ID: <001801c6b481$bf8f0580$99dfdfdf@bakuhatsu.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: Thread-Index: AcazSo4fYTCHTfkjQ8G3Woru+GA5JQBNm9lw Cc: Subject: RE: Definition of _ALIGNBYTES X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matt@genesi-usa.com List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2006 09:14:40 -0000 Does FreeBSD support AltiVec usage in the kernel? If so _ALIGNBYTES may as well be 15, otherwise you would spend all your life realigning vector data if you ever wanted to use it :) Actually in all seriousness, 3 is right. If you longword align all your data, any misalignment is handled in hardware (fairly fast too). If you are trying to get some serious performance out of things you would probably want to 8-byte align your floating point values, and 16-byte align your vector values, and you can do this manually at the time you need it. Otherwise, aligning everything to a 4-byte boundary is just fine and dandy. -- Matt Sealey Manager, Genesi, Developer Relations > -----Original Message----- > From: owner-freebsd-ppc@freebsd.org > [mailto:owner-freebsd-ppc@freebsd.org] On Behalf Of Marcel Moolenaar > Sent: Saturday, July 29, 2006 10:10 PM > To: ppc@FreeBSD.org > Subject: Definition of _ALIGNBYTES > > All, > > In /usr/include/sys/param.h (or > src/sys/powerpc/include/param.h), _ALIGNBYTES is defined as > (sizeof(int) - 1), or 3. It is supposed to represent the mask > used by ALIGN() to yield an alignment suitable for all types. > The alignment of the double, long long, and long double types > is 8, which would imply that _ALIGNBYTES should be 7. All > platforms, except i386, have this "right". > > I don't know how vital this definition is, but I do know that > increasing it yields an ABI breakage (I noticed that ssh(1) > stopped working). The ABI breakage is not severe enough that > you cannot increase and decrease it without being able to do > a buildworld. > > My question: should we bump it up while powerpc is still tier 2? > > -- > Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net > > > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >