CPU_DCACHE_RANGE_INV

Description

Perform a cache invalidate operation on an address range.

Files

cpu_cache.h

Prototype

CPU_DCACHE_RANGE_INV(addr_start,
                     len);


Arguments

addr_start

Start address of the range to invalidate.

len

Length of the region to invalidate.

Returned Value

None.

Required Configuration

The CPU_DCACHE_RANGE_INV 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

  1. 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_INV(p_buf, size); /* Invalidate buffer. */
    
    ...
}