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 <l.burelli@arduino.cc>
This commit is contained in:
Luca Burelli 2023-12-13 09:16:24 +01:00 committed by Fabio Baltieri
commit 8887402290

View file

@ -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