arm64/cache: add i/dcache check to avoid build break
arch/arm64/src/common/arm64_cache.c:344:35: error: macro "up_get_icache_linesize" passed 1 arguments, but takes just 0 344 | size_t up_get_icache_linesize(void) | ^ Feishu-Id: 4956395133 Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
476d1d4e3c
commit
cdef7da956
1 changed files with 8 additions and 0 deletions
|
@ -329,6 +329,8 @@ static inline int arm64_dcache_all(int op)
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_ICACHE
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_get_icache_linesize
|
* Name: up_get_icache_linesize
|
||||||
*
|
*
|
||||||
|
@ -478,6 +480,10 @@ void up_disable_icache(void)
|
||||||
ARM64_ISB();
|
ARM64_ISB();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* CONFIG_ARCH_ICACHE */
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_DCACHE
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_invalidate_dcache
|
* Name: up_invalidate_dcache
|
||||||
*
|
*
|
||||||
|
@ -765,3 +771,5 @@ void up_coherent_dcache(uintptr_t addr, size_t len)
|
||||||
up_invalidate_icache_all();
|
up_invalidate_icache_all();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* CONFIG_ARCH_DCACHE */
|
||||||
|
|
Loading…
Reference in a new issue