未验证 提交 2c610505 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3150 from lymzzyh/M7-cache

[libcpu][M7]修复cache编译警告
...@@ -72,15 +72,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size) ...@@ -72,15 +72,15 @@ void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
if (ops & (RT_HW_CACHE_FLUSH | RT_HW_CACHE_INVALIDATE)) if (ops & (RT_HW_CACHE_FLUSH | RT_HW_CACHE_INVALIDATE))
{ {
SCB_CleanInvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte); SCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
} }
else if (ops & RT_HW_CACHE_FLUSH) else if (ops & RT_HW_CACHE_FLUSH)
{ {
SCB_CleanDCache_by_Addr((rt_uint32_t *)startAddr, size_byte); SCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte);
} }
else if (ops & RT_HW_CACHE_INVALIDATE) else if (ops & RT_HW_CACHE_INVALIDATE)
{ {
SCB_InvalidateDCache_by_Addr((rt_uint32_t *)startAddr, size_byte); SCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
} }
else else
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册