mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-02-06 12:02:14 +08:00
zephyr: cache: Use new cache API
Use the new cache API for the cache hooks. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
2a59968271
commit
ea2b894138
@@ -25,12 +25,12 @@ extern "C" {
|
||||
|
||||
static inline void __metal_cache_flush(void *addr, unsigned int len)
|
||||
{
|
||||
sys_cache_data_range(addr, len, K_CACHE_WB);
|
||||
sys_cache_data_flush_range(addr, len);
|
||||
}
|
||||
|
||||
static inline void __metal_cache_invalidate(void *addr, unsigned int len)
|
||||
{
|
||||
sys_cache_data_range(addr, len, K_CACHE_INVD);
|
||||
sys_cache_data_invd_range(addr, len);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user