summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/ppc4xx
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2010-08-31 11:27:14 +0200
committerStefan Roese <sr@denx.de>2010-09-03 11:14:26 +0200
commitf3cac5384074f3c20b5bcbbdbccbe1e2e25ffc76 (patch)
tree317c2164f104da0796d5018691f2b4ba104fe7ae /arch/powerpc/cpu/ppc4xx
parentc1ab75c7d4e5d080c630335b78681c50aa3569a5 (diff)
downloadu-boot-imx-f3cac5384074f3c20b5bcbbdbccbe1e2e25ffc76.zip
u-boot-imx-f3cac5384074f3c20b5bcbbdbccbe1e2e25ffc76.tar.gz
u-boot-imx-f3cac5384074f3c20b5bcbbdbccbe1e2e25ffc76.tar.bz2
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 <sr@denx.de>
Diffstat (limited to 'arch/powerpc/cpu/ppc4xx')
-rw-r--r--arch/powerpc/cpu/ppc4xx/start.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/start.S b/arch/powerpc/cpu/ppc4xx/start.S
index 5296dad..4bad32f 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 */
/*