1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>PPCSync</title>
10</head>
11
12<body>
13
14<h1>PPCSync</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/base/PPCArch.h&gt;
19
20void PPCSync ( void );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>None.</p>
28
29<H2>Description</H2>
30<P>The <CODE>PPCSync</CODE> function essentially executes a standard PowerPC <code>sync</code> instruction. However, under the Revolution system, several special steps are required to use sync. This function capsulizes these steps.</P>
31<P>The <CODE>PPCSync</CODE> function disables interrupts, enables address broadcasting, and executes a <code>sync</code> instruction. Interrupts are then restored to their prior state, and address broadcasting is disabled.</P>
32<P>The <CODE>PPCSync</CODE> function flushes all I/O traffic being reserved by the CPU for main memory. This is required when applications demand that memory be updated appropriately. For example, you may need to call the <CODE>PPCSync</CODE> function before the graphics processor accesses data to confirm that the data actually exists in main memory after data used by the graphics processor is flushed from the cache.( (See <A href="../Cache/DCFlushRangeNoSync.html"><CODE>DCFlushRangeNoSync</CODE></A> or <A href="../Cache/DCStoreRangeNoSync.html"><CODE>DCStoreRangeNoSync</CODE></A>)</P>
33<P>Be aware that DMA transfers into and out of the locked cache are not affected by the <CODE>PPCSync</CODE> function. You should use the locked cache queue operations to ensure that DMA operations have completed.</P>
34<P>The <CODE>PPCSync</CODE> function takes a significant amount of time, so indiscriminate use of this function may adversely affect performance.</P>
35
36<h2>See Also</h2>
37<P class="reference">
38<a href="../toc.html#Cache" target="contents">Cache Functions</a>,
39<a href="../Cache/DCFlushRangeNoSync.html">DCFlushRangeNoSync</a>,
40<a href="../Cache/DCStoreRangeNoSync.html">DCStoreRangeNoSync</a>
41</p>
42
43<h2>Revision History</h2>
44<P>
452006/03/01 Initial version.<br>
46</P>
47
48<hr><p>CONFIDENTIAL</p></body>
49</html>