分类:
2009-09-30 09:49:20
cacheFlush( ) - flush all or some of a specified cache
STATUS cacheFlush
(
CACHE_TYPE cache, /* cache to flush */
void * address, /* virtual address */
size_t bytes /* number of bytes to flush */
)
This routine flushes (writes to memory) all or some of the entries in the specified cache. Depending on the cache design, this operation may also invalidate the cache tags. For write-through caches, no work needs to be done since RAM already matches the cached entries. Note that write buffers on the chip may need to be flushed to complete the flush.
OK, or ERROR if the cache type is invalid or the cache control is not supported.