CPU_DCACHE_RANGE_FLUSH
Description
Perform a cache flush/clean operation on an address range.
Files
cpu_cache.h
Prototype
CPU_DCACHE_RANGE_FLUSH(addr_start, len);
Arguments
addr_start
Start address of the range to flush.
len
Length of the region to flush.
Returned Value
None.
Required Configuration
The CPU_DCACHE_RANGE_FLUSH macro is always defined but will only perform a meaningful operation when CPU_CFG_CACHE_MGMT_EN is configured to DEF_ENABLED in cpu_cfg.h.
Notes / Warnings
- The result of an unaligned start address or a length not a multiple of a cache line is implementation defined.
Example Usage
void Fnct (void *p_buf, CPU_INT32U size) { CPU_DCACHE_RANGE_FLUSH(p_buf, size); /* Flush buffer. */ ... }