mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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>
This commit is contained in:
parent
e1e1e85203
commit
d409c96216
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ int cleanup_before_linux(void)
|
|||
* dcache flushing and disabling dcache */
|
||||
invalidate_dcache_all();
|
||||
|
||||
icache_disable();
|
||||
invalidate_icache_all();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue