* [U-Boot] [PATCH] armv7m: disable icache before linux booting
@ 2018-03-30 7:22 Patrice Chotard
2018-04-11 14:04 ` [U-Boot] " Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Patrice Chotard @ 2018-03-30 7:22 UTC (permalink / raw)
To: u-boot
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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/cpu/armv7m/cpu.c b/arch/arm/cpu/armv7m/cpu.c
index a424babde547..29597750f8be 100644
--- 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;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] armv7m: disable icache before linux booting
2018-03-30 7:22 [U-Boot] [PATCH] armv7m: disable icache before linux booting Patrice Chotard
@ 2018-04-11 14:04 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-04-11 14:04 UTC (permalink / raw)
To: u-boot
On Fri, Mar 30, 2018 at 09:22:40AM +0200, Patrice Chotard wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180411/a37349bd/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-11 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-30 7:22 [U-Boot] [PATCH] armv7m: disable icache before linux booting Patrice Chotard
2018-04-11 14:04 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.