[PATCH 8/15] zImage: Cleanup and improve zImage entry point

Mark A. Greer mgreer at mvista.com
Wed Mar 21 07:20:19 EST 2007


On Thu, Mar 15, 2007 at 08:36:49PM -0700, Mark A. Greer wrote:
> On Fri, Mar 16, 2007 at 12:50:23PM +1100, David Gibson wrote:
> > On Thu, Mar 15, 2007 at 06:01:16PM -0700, Mark A. Greer wrote:
> > > On Fri, Mar 16, 2007 at 11:14:30AM +1100, David Gibson wrote:
> > > 
> > > What about something like this:
> > > 
> > > #define BSS_STACK(size) \
> > > 	static char _bss_stack[size]; \
> > > 	u32 _platform_stack_size = size;
> > > 
> > > Then in crt0.S add value of _platform_stack_size to _bss_stack to get r1?
> > > That should relocate correctly.
> > 
> > That sounds reasonable, though it's slightly more involved that the
> > current code.  I'm wrangling another stack of bootloader patches at
> > the moment, you want to send something to implement this?
> 
> Sure.  I want to get my current stack of patches working on top of yours
> & Scott's first then I'll make a patch for this (I've just hacked around
> this issue for now).  Stay tuned.

Just in case it wasn't noticed, Milton took care of this in

	"[PATCH 5/7] bootwrapper: missing relocation in crt0.S"

Thank you Milton.

Mark



More information about the Linuxppc-dev mailing list