Skip to content
Snippets Groups Projects
Commit e0ff3d35 authored by Kumar Gala's avatar Kumar Gala Committed by Andrew Fleming-AFLEMING
Browse files

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.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 650a9e7a
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,11 @@ __secondary_start_page: ...@@ -37,6 +37,11 @@ __secondary_start_page:
li r3,0x201 li r3,0x201
mtspr SPRN_BUCSR,r3 mtspr SPRN_BUCSR,r3
/* Ensure TB is 0 */
li r3,0
mttbl r3
mttbu r3
/* Enable/invalidate the I-Cache */ /* Enable/invalidate the I-Cache */
mfspr r0,SPRN_L1CSR1 mfspr r0,SPRN_L1CSR1
ori r0,r0,(L1CSR1_ICFI|L1CSR1_ICE) ori r0,r0,(L1CSR1_ICFI|L1CSR1_ICE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment