From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <465D9672.9060100@freescale.com> Date: Wed, 30 May 2007 10:21:22 -0500 From: Scott Wood MIME-Version: 1.0 To: David Gibson Subject: Re: Consolidate cuboot initialization code References: <20070530020110.GC21955@localhost.localdomain> <465D9397.7000008@freescale.com> <20070530151236.GA14432@localhost.localdomain> In-Reply-To: <20070530151236.GA14432@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Gibson wrote: > On Wed, May 30, 2007 at 10:09:11AM -0500, Scott Wood wrote: >>Is there any particular reason to not just do a direct call to >>cuboot_init, and move the memcpy and end-of-ram calculation there? I'd >>rather avoid macros if possible. > > Uh.. yeah.. because cuboot_init() doesn't know the size to memcpy(), > because it doesn't have the right bd_t definition. Ah, yes. Don't mind me, it's still morning here... :-P We could probably do away with the copy altogether, though, as u-boot puts the bd_t near the stack, which is exempted from the bootwrapper's heap with the 1MiB exclusion. -Scott