From: Stefan Roese Date: Tue, 31 Aug 2010 09:27:14 +0000 (+0200) Subject: ppc4xx: Invalidate d-cache when used as init-ram X-Git-Tag: v2010.09-rc1~4^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3cac5384074f3c20b5bcbbdbccbe1e2e25ffc76;p=u-boot 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. Signed-off-by: Stefan Roese --- diff --git a/arch/powerpc/cpu/ppc4xx/start.S b/arch/powerpc/cpu/ppc4xx/start.S index 5296dad569..4bad32f9f5 100644 --- a/arch/powerpc/cpu/ppc4xx/start.S +++ b/arch/powerpc/cpu/ppc4xx/start.S @@ -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 */ /*