From owner-cvs-src Thu Feb 20 0: 9:21 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 CC51137B401; Thu, 20 Feb 2003 00:09:18 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F76643FDD; Thu, 20 Feb 2003 00:09:17 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h1K89H1o041557; Thu, 20 Feb 2003 00:09:17 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.7/8.12.7) with ESMTP id h1K89GqM024262; Thu, 20 Feb 2003 00:09:17 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.7/8.12.7/Submit) id h1K89GM6024247; Thu, 20 Feb 2003 00:09:16 -0800 (PST) (envelope-from marcel) Date: Thu, 20 Feb 2003 00:09:15 -0800 From: Marcel Moolenaar To: Tim Robbins 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: <20030220080915.GA14730@dhcp01.pn.xcllnt.net> 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> <20030220183649.A65531@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030220183649.A65531@dilbert.robbins.dropbear.id.au> User-Agent: Mutt/1.5.3i 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 Thu, Feb 20, 2003 at 06:36:49PM +1100, Tim Robbins wrote: > 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. Buildworld works for me on ia64 and i386. I locally removed the header and include . If I have time I'll cycle through it again with a buildworld and installworld. I wonder if there's some other good testing we can do. The change is dangerous enough that I want to make sure ew covered everything. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message