From: Wolfgang Denk Date: Sun, 07 Sep 2008 01:24:27 +0200 Subject: [U-Boot] [PATCH][for 1.3.5] 85xx: Ensure timebase is zero on secondary cores In-Reply-To: <31141755-2866-4C60-B179-F34E3E4646B4@kernel.crashing.org> References: <1220622311-21493-1-git-send-email-galak@kernel.crashing.org> <20080905161022.GA22318@ld0162-tx32.am.freescale.net> <31141755-2866-4C60-B179-F34E3E4646B4@kernel.crashing.org> Message-ID: <20080906232427.F072A248BB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <31141755-2866-4C60-B179-F34E3E4646B4@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