4.2 CACHE
4.2.1
CACHE_Clean
Function
Arguments
Return Value
Description
Example
Cleans a range of L2 cache
void CACHE_Clean(
CACHE_REGION Region,
UINT32 Addr,
UINT32 WordCt
);
Specifies which cache region to clean; must be one of the
Region
following:
CACHE_L2
CACHE_L2ALL
Beginning address of range to clean; word aligned
Addr
Number of 4-byte words to clean
WordCt
none
Cleans a range of L2 cache. All lines within the range defined by Addr
and WordCt are cleaned out of L2. If CACHE_L2ALL is specified, then
all of L2 is cleaned, Addr and WordCt are ignored. A clean operation
involves writing back all dirty cache lines then invalidation of those
lines. This routine waits until the operation completes before returning.
Note: This function does nothing on devices without L2 cache.
If you want to clean a 4K-byte range that starts at 0x80000000 out of
L2 use:
CACHE_Clean(CACHE_L2,0x80000000,0x00000400);
If you want to clean all lines out of L2 use:
CACHE_Clean(CACHE_L2All,0x00000000,0x00000000);
CSL API Reference
CACHE
4-3
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?