]> git.sur5r.net Git - u-boot/commitdiff
armv7m: disable icache before linux booting
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 30 Mar 2018 07:22:40 +0000 (09:22 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 10 Apr 2018 15:52:16 +0000 (11:52 -0400)
Similarly to ARMV7, on ARMV7M instruction cache memory needs
to be disabled before running linux kernel to avoid kernel to
be stuck.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/cpu/armv7m/cpu.c

index a424babde547042bbb97958cd8ca2ff50cef4e13..29597750f8bec11d49ac583f4f9ed013949277db 100644 (file)
@@ -37,6 +37,9 @@ int cleanup_before_linux(void)
         * dcache flushing and disabling dcache */
        invalidate_dcache_all();
 
+       icache_disable();
+       invalidate_icache_all();
+
        return 0;
 }