[PATCH 03/10] powerpc: Add kexec support for PPC_85xx platforms

Dale Farnsworth dale at farnsworth.org
Wed Dec 19 03:14:33 EST 2007


On Sat, Dec 15, 2007 at 05:16:25PM +1100, Benjamin Herrenschmidt wrote:
> > index 8b642ab..db0e749 100644
> > --- a/arch/powerpc/kernel/misc_32.S
> > +++ b/arch/powerpc/kernel/misc_32.S
> > @@ -816,6 +816,75 @@ relocate_new_kernel:
> >  	/* r4 = reboot_code_buffer */
> >  	/* r5 = start_address      */
> >  
> > +#ifdef CONFIG_E500
> > +	/*
> > +	 * Since we can't turn off the MMU, we must create an identity
> > +	 * map for kernel low memory.  We start by invalidating the
> > +	 * TLB entries we don't need.
> > +	 *
> > +	 * First, invalidate the TLB0 entries
> > +	 */
> > +	li	r6, 0x04
> > +	tlbivax	0, r6
> > +#ifdef CONFIG_SMP
> > +	tlbsync
> > +#endif
> > +	msync
> > +
> 
> This is really E500 specific or should it be CONFIG_FSL_BOOKE ?
> 
> Ben.

I agree that CONFIG_FSL_BOOKE is more appropriate.  I'll reflect that
in the next respin.

Thanks,
-Dale



More information about the Linuxppc-dev mailing list