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:
parent
9f3d9f7594
commit
8887402290
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
/* Make sure changes to ext sections are flushed to RAM */
|
||||||
for (i = 0; i < LLEXT_MEM_COUNT; ++i) {
|
for (i = 0; i < LLEXT_MEM_COUNT; ++i) {
|
||||||
if (ext->mem[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
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue