[U-Boot] [PATCH 1/2] 85xx: CONFIG_MP Boot Page Translation update

Peter Tyser ptyser at xes-inc.com
Wed Aug 5 23:34:30 CEST 2009


Hi Kumar,

> > diff --git a/cpu/mpc85xx/mp.c b/cpu/mpc85xx/mp.c
> > index 76f02a4..53fc3be 100644
> > --- a/cpu/mpc85xx/mp.c
> > +++ b/cpu/mpc85xx/mp.c
> > @@ -129,7 +129,7 @@ ulong get_spin_addr(void)
> >
> > 	ulong addr =
> > 		(ulong)&__spin_table - (ulong)&__secondary_start_page;
> > -	addr += 0xfffff000;
> > +	addr += determine_mp_bootpg();
> 
> where is determine_mp_bootpg() defined?

Its in cpu/mpc85xx/mp.c:

u32 determine_mp_bootpg(void)
{
	/* if we have 4G or more of memory, put the boot page at 4Gb-4k */
	if ((u64)gd->ram_size > 0xfffff000)
		return (0xfffff000);

	return (gd->ram_size - 4096);
}

<snip>

> > +	out_be32(&ecm->bptr, in_be32(&ecm->bptr) & ~0x80000000);
> 
> use clrbits_be32

Will do.

Thanks,
Peter



More information about the U-Boot mailing list