Commit f3cac5384074f3c20b5bcbbdbccbe1e2e25ffc76

Authored by Stefan Roese
1 parent c1ab75c7d4

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>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

arch/powerpc/cpu/ppc4xx/start.S
... ... @@ -1459,6 +1459,11 @@
1459 1459 mtspr SPRN_DTV3,r6
1460 1460 msync
1461 1461 isync
  1462 +
  1463 + /* Invalidate data cache, now no longer our stack */
  1464 + dccci 0,0
  1465 + sync
  1466 + isync
1462 1467 #endif /* CONFIG_SYS_INIT_RAM_DCACHE */
1463 1468  
1464 1469 /*