Skip to content

Commit

Permalink
arm64/cache: add i/dcache check to avoid build break
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Dec 19, 2024
1 parent 476d1d4 commit cdef7da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm64/src/common/arm64_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ static inline int arm64_dcache_all(int op)
* Public Functions
****************************************************************************/

#ifdef CONFIG_ARCH_ICACHE

/****************************************************************************
* Name: up_get_icache_linesize
*
Expand Down Expand Up @@ -478,6 +480,10 @@ void up_disable_icache(void)
ARM64_ISB();
}

#endif /* CONFIG_ARCH_ICACHE */

#ifdef CONFIG_ARCH_DCACHE

/****************************************************************************
* Name: up_invalidate_dcache
*
Expand Down Expand Up @@ -765,3 +771,5 @@ void up_coherent_dcache(uintptr_t addr, size_t len)
up_invalidate_icache_all();
}
}

#endif /* CONFIG_ARCH_DCACHE */

0 comments on commit cdef7da

Please sign in to comment.