diff --git a/include/cache.h b/include/cache.h index 262cae2a8ea..4478c81a440 100644 --- a/include/cache.h +++ b/include/cache.h @@ -168,6 +168,13 @@ static inline int z_impl_sys_icache_range(void *addr, size_t size, int op) return -ENOTSUP; } +#ifdef CONFIG_LIBMETAL +static inline void sys_cache_flush(void *addr, size_t size) +{ + sys_dcache_range(addr, size, K_CACHE_WB); +} +#endif + #define CPU DT_PATH(cpus, cpu_0) /**