[U-Boot] [PATCH v2] armv7m: cache: add invalidate_icache_all() stub
Giulio Benetti
giulio.benetti at benettiengineering.com
Tue Nov 26 11:19:27 UTC 2019
This commit:
https://gitlab.denx.de/u-boot/u-boot/commit/d409c962169bd293e39386d0ddfa64d5222a3be4
causes build failure with ICACHE enabled. This is due to missing
invalidate_icache_all() stub. Let's add empty invalidate_icache_all() in
the case where ICACHE is not enabled.
Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
---
V1->V2:
* substitute 'return 0;' with 'return;' since function returns void
---
arch/arm/cpu/armv7m/cache.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c
index 0ccd7519a1..87c2baa60d 100644
--- a/arch/arm/cpu/armv7m/cache.c
+++ b/arch/arm/cpu/armv7m/cache.c
@@ -337,6 +337,11 @@ void icache_disable(void)
isb(); /* subsequent instructions fetch see cache disable effect */
}
#else
+void invalidate_icache_all(void)
+{
+ return;
+}
+
void icache_enable(void)
{
return;
--
2.20.1
More information about the U-Boot
mailing list