Skip to contentSkip to conversation

powerpc/mpc85xx:Disable Debug TLB entry before init_tlbs

PATCH Superseded Prabhakar Kushwaha 1 participant 1 message Jun 6, 2013 PowerPC

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/mpc85xx:Disable Debug TLB entry before init_tlbs

init_tlbs() initialize all the TLB entries required for the system.

So disable DEBUG TLB entry before TLB entries initialization.

---
 arch/powerpc/cpu/mpc85xx/cpu_init_early.c |    4 ++++
 1 file changed, 4 insertions(+)
arch/powerpc/cpu/mpc85xx/cpu_init_early.c +4 -0
index f4403c2..3ab7748 100644
@@ -180,5 +180,9 @@ void cpu_init_early_f(void)
 
 	invalidate_tlb(1);
 
+#if defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) && !defined(CONFIG_SPL_BUILD)
+       disable_tlb(CONFIG_SYS_PPC_E500_DEBUG_TLB);
+#endif
+
 	init_tlbs();
 }
Signature · 1 line
1.7.9.5