Skip to content

Commit

Permalink
arch: arc: use sys_cache instead of arch-function for enabling the cache
Browse files Browse the repository at this point in the history
Use sys_cache_data_enable instead of arch_dcache_enable to enable
the cache. This will ensure that CONFIG_CACHE_MANAGEMENT
is considered correctly.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
  • Loading branch information
benediktibk authored and carlescufi committed Jan 10, 2024
1 parent 1f1b430 commit 2a29199
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arc/core/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ int arch_icache_flush_and_invd_range(void *addr, size_t size)

static int init_dcache(void)
{

arch_dcache_enable();
sys_cache_data_enable();

#if defined(CONFIG_DCACHE_LINE_SIZE_DETECT)
init_dcache_line_size();
Expand Down

0 comments on commit 2a29199

Please sign in to comment.