can't boot mpc5200, powerpc: Enable AT_BASE_PLATFORM aux vector

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Jul 26 08:15:08 EST 2008


On Fri, 2008-07-25 at 17:00 -0500, Nathan Lynch wrote:
> Jon Smirl wrote:
> > I've lost my ability to boot on the mpc5200. Reverting this patch fixes it.
> 
> How does it fail?
> 
> 
> > @@ -1652,6 +1655,14 @@ struct cpu_spec * __init identify_cpu(unsigned
> > long offset, unsigned int pvr)
> >  			} else
> >  				*t = *s;
> >  			*PTRRELOC(&cur_cpu_spec) = &the_cpu_spec;
> > +
> > +			/*
> > +			 * Set the base platform string once; assumes
> > +			 * we're called with real pvr first.
> > +			 */
> > +			if (powerpc_base_platform == NULL)
> > +				powerpc_base_platform = t->platform;
> > +
> 
> Hmm, maybe this needs RELOC/PTRRELOC tricks?

Hrm... indeed.

if (RELOC(powerpc_base_platform))
	RELOC(powerpc_base_platform) = t->platform;

try that.

Ben.





More information about the Linuxppc-dev mailing list