]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/lib/relocate.S
pxa: fix memory coherency problem after relocation
[karo-tx-uboot.git] / arch / arm / lib / relocate.S
index 949b9e8025b994cb8e6a9d85e63a920387e11ba7..cd2bab6cde7fb4e9c19cedc611122b91267d2aab 100644 (file)
@@ -70,6 +70,15 @@ fixnext:
 
 relocate_done:
 
+#ifdef __XSCALE__
+       /*
+        * On xscale, icache must be invalidated and write buffers drained,
+        * even with cache disabled - 4.2.7 of xscale core developer's manual
+        */
+       mcr     p15, 0, r0, c7, c7, 0   /* invalidate icache */
+       mcr     p15, 0, r0, c7, c10, 4  /* drain write buffer */
+#endif
+
        /* ARMv4- don't know bx lr but the assembler fails to see that */
 
 #ifdef __ARM_ARCH_4__