|
@@ -439,6 +439,11 @@ fiq:
|
|
|
.align 5
|
|
|
.global arm1136_cache_flush
|
|
|
arm1136_cache_flush:
|
|
|
+#if !defined(CONFIG_SYS_NO_ICACHE)
|
|
|
mcr p15, 0, r1, c7, c5, 0 @ invalidate I cache
|
|
|
+#endif
|
|
|
+#if !defined(CONFIG_SYS_NO_DCACHE)
|
|
|
+ mcr p15, 0, r1, c7, c14, 0 @ invalidate D cache
|
|
|
+#endif
|
|
|
mov pc, lr @ back to caller
|
|
|
#endif /* CONFIG_PRELOADER */
|