From owner-cvs-src Wed Feb 19 23:36:59 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73D6A37B401; Wed, 19 Feb 2003 23:36:57 -0800 (PST) Received: from dilbert.robbins.dropbear.id.au (247.c.007.mel.iprimus.net.au [210.50.82.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B1D43F85; Wed, 19 Feb 2003 23:36:54 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (ylvsxtyte658pcud@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h1K7aqFa065688; Thu, 20 Feb 2003 18:36:52 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id h1K7aneq065687; Thu, 20 Feb 2003 18:36:49 +1100 (EST) (envelope-from tim) Date: Thu, 20 Feb 2003 18:36:49 +1100 From: Tim Robbins To: Marcel Moolenaar Cc: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sh machdep.h memalloc.c nodes.c.pat Message-ID: <20030220183649.A65531@dilbert.robbins.dropbear.id.au> References: <200302180208.h1I28Kbu046465@repoman.freebsd.org> <20030218022850.GB1973@athlon.pn.xcllnt.net> <20030218143222.A21049@dilbert.robbins.dropbear.id.au> <20030218073738.GA3320@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030218073738.GA3320@athlon.pn.xcllnt.net>; from marcel@xcllnt.net on Mon, Feb 17, 2003 at 11:37:38PM -0800 Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 17, 2003 at 11:37:38PM -0800, Marcel Moolenaar wrote: > On Tue, Feb 18, 2003 at 02:32:22PM +1100, Tim Robbins wrote: > > > > Try this (ugly) patch: http://people.freebsd.org/~tjr/align.diff > > > > I've hacked up something too. See http://www.xcllnt.net/~marcel/sh.diff > > Some notes: > o For testing purposes I hardcoded 16-byte alignment in machdep.h. This > allows me to test it on any machine I have, not just ia64. In the real > world the header does not exist and is included. > o I removed the stackbase completely, because you cannot depend on it > being aligned properly. Hence the initial situation is with stackp > NULL. > o I sprinkled asserts in the code to have sh(1) fail hard at the > first signs of misalignment. > > Give it a spin. I'm currently testing with an i386 buildworld... Seems to work nicely on alpha and sparc64. I haven't had a chance to try a buildworld with it yet, though. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message