Subject: Re: CVS commit: syssrc/sys/arch/macppc/stand/bootxx
To: Bill Studenmund <wrstuden@netbsd.org>
From: Allen Briggs <briggs@wasabisystems.com>
List: source-changes
Date: 05/16/2002 14:09:15
On Thu, May 16, 2002 at 09:02:48PM +0300, Bill Studenmund wrote:
> Log Message:
> Adjust how we set up our stack. According to the ABI, we store the
> return pc address at (r1). So don't initialize r1 to be outside our
> stack area. Scooted it in 16 bytes to help alignment.

Actually, (r1) is the frame link, and 4(r1) is the subroutine link.
ABI also wants stack to be 16-byte aligned, so if 'stack' is 16-byte
aligned already, you're fine.

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service
NetBSD development for Alpha, ARM, M68K, MIPS, PowerPC, SuperH, XScale, etc...