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.1.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>Cache: Overview </TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">Cache: Overview <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1>
12<P>ARM9 has a cache mechanism that can be used to boost the efficiency of local memory access. The ARM9 cache is comprised of 8 KB of instruction cache and 4 KB of data cache.</P>
13<P>These functions belong to the OS category of functions but they have special applications. Accordingly, the data cache-related function names do not begin with <code>OS_</code> but with <code><font color="#ff0033">DC_</font></code>, and the instruction cache-related functions are named beginning with <code><font color="#ff0033">IC_</font></code>.</P>
14<H2>Settings to Enable/Disable Data Cache</H2>
15<P><code><a href="DC_Enable.html">DC_Enable()</a></code> enables data cache.</P>
16<P><code><a href="DC_Disable.html">DC_Disable()</a></code> disables data cache.</P>
17<P><code><a href="DC_Restore.html">DC_Restore()</a></code> sets the state to either enable or disable, as specified.</P>
18<P>Even if these instructions are set to enable data cache, the switch from the disabled state to the enabled state will not occur if the Protection Unit has been configured to disable data cache.</P>
19<H2>Data Cache Operations</H2>
20<P><code><a href="DC_InvalidateAll.html">DC_InvalidateAll()</a></code> destroys all data in data cache.<br /><code><a href="DC_InvalidateRange.html">DC_InvalidRange()</a></code> destroys data in a specified region of data cache.</P>
21<P><code><a href="DC_StoreAll.html">DC_StoreAll()</a></code> writes back all data in data cache.<br /><code><a href="DC_StoreRange.html">DC_StoreRange()</a></code> writes back data in a specified region of data cache.</P>
22<P><code><a href="DC_FlushAll.html">DC_FlushAll()</a></code> writes back and destroys all data in data cache.<br /><code><a href="DC_FlushRange.html">DC_FlushRange()</a></code> writes back and destroys data in a specified region of data cache.</P>
23<P><code><a href="DC_TouchRange.html">DC_TouchRange()</a></code> preloads a specified region of data into data cache.</P>
24<P><code><a href="DC_LockdownRange.html">DC_LockdownRange()</a></code> locks the data in a specified region of data cache so it cannot be replaced with other cache.</P>
25<P><code><a href="DC_WaitWriteBufferEmpty.html">DC_WaitWriteBufferEmpty()</a></code> checks whether the write buffer is empty after writing back cache.</P>
26<H2>Settings to Enable/Disable Instruction Cache</H2>
27<P><code><a href="IC_Enable.html">IC_Enable()</a></code> enables instruction cache.</P>
28<P><code><a href="IC_Disable.html">IC_Disable()</a></code> disables instruction cache.</P>
29<P><code><a href="IC_Restore.html">IC_Restore()</a></code> sets the state to either enable or disable, as specified.</P>
30<P>Even if these instructions are set to enable instruction cache, the switch from the disabled state to the enabled state will not occur if the Protection Region has been configured to disable instruction cache.</P>
31<H2>Instruction Cache Operations</H2>
32<P><code><a href="IC_InvalidateAll.html">IC_InvalidateAll()</a></code> destroys all data in instruction cache.</P>
33<P><code><a href="IC_InvalidateRange.html">IC_InvalidateRange()</a></code> destroys data in a specified region of instruction cache.</P>
34<P><code><a href="IC_PrefetchRange.html">IC_PrefetchRange()</a></code> preloads a specified region of instruction code into instruction cache.</P>
35<P><code><a href="IC_LockdownRange.html">IC_LockdownRange()</a></code> locks the data in a specified region of instruction cache so it cannot be replaced with other cache.</P>
36<H2>See Also</H2>
37<P><CODE><A href="../list_os.html#Cache"><a href="../list_os.html#Cache">OS Function List (Cache)</a></A><BR></CODE></P>
38<H2>Revision History</H2>
39<P>2004/12/16 Initial version.</P>
40<hr><p>CONFIDENTIAL</p></body>
41</HTML>