Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2003 00:09:15 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Tim Robbins <tjr@FreeBSD.org>
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>
In-Reply-To: <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> <20030220183649.A65531@dilbert.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/param.h> 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 <sys/param.h>. 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-all" in the body of the message




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