[PATCH 2/4] powerpc: Add device tree utility functions to zImage

David Gibson david at gibson.dropbear.id.au
Thu Mar 22 10:31:31 EST 2007


On Wed, Mar 21, 2007 at 06:10:21PM +0100, Segher Boessenkool wrote:
> > @@ -262,6 +253,10 @@ void start(void *sp)
> >  	printf("\n\rzImage starting: loaded at 0x%p (sp: 0x%p)\n\r",
> >  	       _start, sp);
> >
> > +	/* Ensure that the device tree has a /chosen node */
> > +	if (! finddevice("/chosen"))
> > +		create_node(NULL, "chosen");
> > +
> >  	vmlinux = prep_kernel();
> >  	initrd = prep_initrd(vmlinux, loader_info.initrd_addr,
> >  			     loader_info.initrd_size);
> 
> So this is done early, and unconditional now?  Just
> double checking, not enough context (for me, anyway)
> in the patch itself.

Yes, that's right.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list