Skip to content

Commit

Permalink
zephyr: cache: Use new cache API
Browse files Browse the repository at this point in the history
Use the new cache API for the cache hooks.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
  • Loading branch information
carlocaione authored and arnopo committed Nov 18, 2022
1 parent 2a59968 commit ea2b894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system/zephyr/cache.h
Expand Up @@ -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
Expand Down

0 comments on commit ea2b894

Please sign in to comment.