Skip to contentSkip to conversation

ppc4xx: Invalidate d-cache when used as init-ram

PATCH New Stefan Roese 1 participant 2 messages Aug 31, 2010 – Sep 3, 2010 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Invalidate d-cache when used as init-ram

We need to invalidate the data cache after it has been used as init-ram.

This problem was detected on the lwmon5 update.

---
 arch/powerpc/cpu/ppc4xx/start.S |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
arch/powerpc/cpu/ppc4xx/start.S +5 -0
index 5296dad..4bad32f 100644
@@ -1459,6 +1459,11 @@ relocate_code:
 	mtspr	SPRN_DTV3,r6
 	msync
 	isync
+
+	/* Invalidate data cache, now no longer our stack */
+	dccci	0,0
+	sync
+	isync
 #endif /* CONFIG_SYS_INIT_RAM_DCACHE */
 
 	/*
Signature · 1 line
1.7.2.2
#1 lore raw

PATCH 1/1 ppc4xx: Invalidate d-cache when used as init-ram

Quoted 3 lines · On Tuesday 31 August 2010 11:27:14 Stefan Roese wrote:

We need to invalidate the data cache after it has been used as init-ram.

This problem was detected on the lwmon5 update.

Applied to u-boot-ppc4xx/master. Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de