Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2003 23:37:38 -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:  <20030218073738.GA3320@athlon.pn.xcllnt.net>
In-Reply-To: <20030218143222.A21049@dilbert.robbins.dropbear.id.au>
References:  <200302180208.h1I28Kbu046465@repoman.freebsd.org> <20030218022850.GB1973@athlon.pn.xcllnt.net> <20030218143222.A21049@dilbert.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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...

-- 
 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?20030218073738.GA3320>