projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1e1e85
)
armv7m: disable icache before linux booting
author
Patrice Chotard
<patrice.chotard@st.com>
Fri, 30 Mar 2018 07:22:40 +0000
(09:22 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7m/cpu.c
b/arch/arm/cpu/armv7m/cpu.c
index a424babde547042bbb97958cd8ca2ff50cef4e13..29597750f8bec11d49ac583f4f9ed013949277db 100644
(file)
--- a/
arch/arm/cpu/armv7m/cpu.c
+++ b/
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;
}