#include <revolution/base/PPCArch.h>
void PPCSync ( void );
None.
None.
The PPCSync function performs a standard PowerPC sync instruction. However, several special steps are required to use sync in the Revolution. This function encapsulates these steps.
PPCSync disables interrupts, enables address broadcasting, and performs a sync instruction. Interrupts are then restored to their prior state, and address broadcasting is disabled.
The PPCSync function flushes all reserved I/O traffic from CPU to main memory. Flushing traffic is required when applications demand that memory be updated appropriately. For example, data is flushed from the cache to main memory for the graphics processor to use. To confirm that the data was flushed to main memory, you many need to call PPCSync before the graphics processor accesses the data. (See DCFlushRangeNoSync or DCStoreRangeNoSync.)
The DMA transfer between the locked cache is not affected by the PPCSync function. You should use the locked cache queue operations to ensure that DMA operations have completed.
Because the PPCSync function can take a significant amount of time, indiscriminate use of this function may adversely affect performance.
Cache Functions,
DCFlushRangeNoSync, DCStoreRangeNoSync
2006/03/01 Initial version.
CONFIDENTIAL