[U-Boot] [PATCH][for 1.3.5] 85xx: Ensure timebase is zero on secondary cores

Wolfgang Denk wd at denx.de
Sun Sep 7 01:24:27 CEST 2008


Dear Kumar Gala,

In message <31141755-2866-4C60-B179-F34E3E4646B4 at kernel.crashing.org> you wrote:
> 
> >> +	/* Ensure TB is 0 */
> >> +	li	r3,0
> >> +	mttbu	r3
> >> +	mttbl	r3
> >
> > If it's possible that TBL is a small negative number out of reset,  
> > then
> > we should write TBL before TBU to avoid a rollover race.
> 
> Time base is disabled at this point, so it should be moving AT ALL.

But swapping the two insns shouldn't hurt either.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
News is what a chap who doesn't care much  about  anything  wants  to
read. And it's only news until he's read it. After that it's dead.
                           - Evelyn Waugh _Scoop_ (1938) bk. 1, ch. 5


More information about the U-Boot mailing list