arch: arc: use sys_cache instead of arch-function for enabling the cache
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>
This commit is contained in:
parent
1f1b430d88
commit
2a2919946f
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user