1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>IC_PrefetchRange</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">IC_PrefetchRange <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;nitro/os.h&gt;</CODE></PRE>
16  <PRE><CODE>void IC_PrefetchRange( const void* startAddr, u32 nBytes );</CODE></PRE>
17</DL>
18<H2>Arguments</H2>
19<TABLE border="1" width="100%">
20  <TBODY>
21    <TR>
22      <TD width="13%"><EM><STRONG>startAddr</STRONG></EM></TD>
23      <TD width="87%">Lowest address in the prefetch region</TD>
24    </TR>
25    <TR>
26      <TD width="13%"><EM><STRONG>nBytes</STRONG></EM></TD>
27      <TD width="87%">Number of bytes in the prefetch region</TD>
28    </TR>
29  </TBODY>
30</TABLE>
31<H2>Return Values</H2>
32<P>None.</P>
33<H2>Description</H2>
34<P>This function prefetches the instruction code of the specified region into the instruction cache.</P>
35<P><B><I>startAddr</I></B> is rounded down to the closest 32-byte boundary. The sum of <B><I>startAddr</I></B> + <B><I>nBytes</I></B> is rounded up to the closest 32-byte boundary.</P>
36<H2>Internal Operation</H2>
37<P>Operates register 7 of the system control coprocessor.</P>
38<P>This function divides the specified range into cache-line units and repeats its operation. Thus the amount of time it takes is proportional to the size of the range.</P>
39<H2>See Also</H2>
40<P><CODE><A href="IC_InvalidateRange.html">IC_InvalidateRange</A>, <A href="IC_LockdownRange.html">IC_LockdownRange</A><BR></CODE></P>
41<H2>Revision History</H2>
42<P>
432005/11/14 Changed the type of <em><strong><code>startAddr</code></strong></em> to <code>const void*</code>.<br> 2005/04/19 Added a description of the reason why processing time is proportional to the size of the memory region. <br>2003/12/22 Initial version.</P>
44<hr><p>CONFIDENTIAL</p></body>
45</HTML>