Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bsp][cvitek] fix c906_little build warning in cache.c #9922

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bsp/cvitek/c906_little/board/cache.c
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
*
* Change Logs:
* Date Author Notes
* 2025/01/16 zdtyuiop4444 fix type cast warning
* 2024/11/26 zdtyuiop4444 The first version
*/

@@ -33,10 +34,10 @@ inline void rt_hw_cpu_dcache_ops(int ops, void* addr, int size)
switch (ops)
{
case RT_HW_CACHE_FLUSH:
flush_dcache_range(addr, size);
flush_dcache_range((uintptr_t)addr, size);
break;
case RT_HW_CACHE_INVALIDATE:
inv_dcache_range(addr, size);
inv_dcache_range((uintptr_t)addr, size);
break;
default:
break;
@@ -62,7 +63,7 @@ inline void rt_hw_cpu_icache_ops(int ops, void* addr, int size)
switch (ops)
{
case RT_HW_CACHE_INVALIDATE:
inv_icache_range(addr, size);
inv_icache_range((uintptr_t)addr, size);
break;
default:
break;