Skip to contentSkip to conversation

85xx: Ensure timebase is zero on secondary cores

PATCH New Kumar Gala 2 participants 2 messages Sep 8, 2008 – Sep 9, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH v2 1/1 85xx: Ensure timebase is zero on secondary cores

The e500um says the timebase is volatile out of reset. To ensure TB sync works we need to make sure its zero.

---
Swapped mftbl,mftbu at Scott's request.. it doesnt mater since TB isn't ticking when we do this.

- k

 cpu/mpc85xx/release.S |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
cpu/mpc85xx/release.S +5 -0
index 75676b5..ec5e4da 100644
@@ -37,6 +37,11 @@ __secondary_start_page:
 	li	r3,0x201
 	mtspr	SPRN_BUCSR,r3
 
+	/* Ensure TB is 0 */
+	li	r3,0
+	mttbl	r3
+	mttbu	r3
+
 	/* Enable/invalidate the I-Cache */
 	mfspr	r0,SPRN_L1CSR1
 	ori	r0,r0,(L1CSR1_ICFI|L1CSR1_ICE)
Signature · 1 line
1.5.5.1
Applied
#1 lore raw

PATCH v2 1/1 85xx: Ensure timebase is zero on secondary cores

Quoted 7 lines · Kumar Gala

The e500um says the timebase is volatile out of reset. To ensure TB sync works we need to make sure its zero.

---
Swapped mftbl,mftbu at Scott's request.. it doesnt mater since TB isn't ticking when we do this.

Applied, thanks

Andy