#include <revolution/os.h> void DCStoreRange(void* startAddr, u32 nBytes);
|
Effective address (not the physical address) . |
|
Size of range to store. |
None.
Securely updates specified memory range with modified data in cache. The startAddr argument is rounded down to a 32-byte boundary. The end address ( i.e., startAddr+ nBytes) is rounded up to the 32-byte boundary.
This command will still execute even if the cache is disabled or frozen by the DCFreeze function.
This function invokes a sync after storing the specified range. This means that this function will stall until the CPU knows that the data has been written to main memory. Since this operation can be costly, consider calling the DCStoreRangeNoSync function on several ranges followed by a separate call to the PPCSync function. DMA transfers with locked caches are not affected by the PPCSync function.
Cache Functions, DCStoreRangeNoSync, DCFlushRange, DCFlushRangeNoSync, DCInvalidateRange, ICInvalidateRange, PPCSync
2006/03/01 Initial version.
CONFIDENTIAL