瀏覽代碼

armv7m: disable icache before linux booting

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>
Patrice Chotard 7 年之前
父節點
當前提交
d409c96216
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/arm/cpu/armv7m/cpu.c

+ 3 - 0
arch/arm/cpu/armv7m/cpu.c

@@ -37,6 +37,9 @@ int cleanup_before_linux(void)
 	 * dcache flushing and disabling dcache */
 	invalidate_dcache_all();
 
+	icache_disable();
+	invalidate_icache_all();
+
 	return 0;
 }