KallistiOS
##version##
|
Cache management functionality. More...
Go to the source code of this file.
Functions | |
void | icache_flush_range (uint32 start, uint32 count) |
Flush the instruction cache. More... | |
void | dcache_inval_range (uint32 start, uint32 count) |
Invalidate the data/operand cache. More... | |
void | dcache_flush_range (uint32 start, uint32 count) |
Flush the data/operand cache. More... | |
Cache management functionality.
This file contains definitions for functions that manage the cache in the Dreamcast, including functions to flush and invalidate the caches.
Flush the data/operand cache.
This function flushes a range of the data/operand cache, forcing a write- back on all of the data in the specified range. This does not invalidate the cache in the process (meaning the blocks will still be in the cache, just not marked as dirty after this has completed). If you wish to invalidate the cache as well, call dcache_inval_range() after calling this function.
start | The physical address to begin flushing at. |
count | The number of bytes to flush. |
Invalidate the data/operand cache.
This function invalidates a range of the data/operand cache. If you care about the contents of the cache that have not been written back yet, use dcache_flush_range() before using this function.
start | The physical address to begin invalidating at. |
count | The number of bytes to invalidate. |