From 88874022906b3b35d96cca8888dece1a647011bb Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Wed, 13 Dec 2023 09:16:24 +0100 Subject: [PATCH] llext: fix: use proper global #define for cache flush The arch_* functions are architecture-specific and may not be defined in all targets. Use the global alias defined in the Cache API instead. Fixes #66382. Signed-off-by: Luca Burelli --- subsys/llext/llext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/llext/llext.c b/subsys/llext/llext.c index d71dfca3a77..84cbc4d583d 100644 --- a/subsys/llext/llext.c +++ b/subsys/llext/llext.c @@ -781,7 +781,7 @@ static int llext_link(struct llext_loader *ldr, struct llext *ext, bool do_local /* Make sure changes to ext sections are flushed to RAM */ for (i = 0; i < LLEXT_MEM_COUNT; ++i) { if (ext->mem[i]) { - arch_dcache_flush_range(ext->mem[i], ext->mem_size[i]); + sys_cache_data_flush_range(ext->mem[i], ext->mem_size[i]); } } #endif