cache: libmetal: Redirect sys_cache_flush()
Libmetal is still using the old sys_cache_flush(). Use an helper until libmetal is properly fixed. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
dc4cc5565b
commit
9d563e8f74
1 changed files with 7 additions and 0 deletions
|
@ -168,6 +168,13 @@ static inline int z_impl_sys_icache_range(void *addr, size_t size, int op)
|
||||||
return -ENOTSUP;
|
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)
|
#define CPU DT_PATH(cpus, cpu_0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue