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="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MI_DumpWramList</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MI_DumpWramList* <IMG src="../../image/TWL.gif" align="middle"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd><CODE>#include &lt;twl/mi.h&gt;</CODE></dd>
19  <dd>&nbsp;</dd>
20  <dd><CODE>void MI_DumpWramList( <A href="../mi_constant.html">MIWramPos</A> wram );</CODE></dd>
21</dl>
22<dl>
23  <dd><CODE>void MI_DumpWramListAll( void );</CODE></dd>
24</dl>
25<dl>
26  <dd>(define)</dd>
27  <dd><CODE>void MI_DumpWramList_A();</CODE></dd>
28  <dd><CODE>void MI_DumpWramList_B();</CODE></dd>
29  <dd><CODE>void MI_DumpWramList_C();</CODE></dd>
30</dl>
31<h2>Arguments</h2>
32<TABLE border="1" width="100%">
33  <TBODY>
34    <TR>
35<TD width="13%"><EM><STRONG>wram</STRONG></EM></TD>
36<TD width="87%">WRAM to display.</TD>
37    </TR>
38  </TBODY>
39</TABLE>
40
41<h2>Return Values</h2>
42<p>None.</p>
43
44<H2>Description</H2>
45<P>Displays the status of the WRAM.<BR>This function is used for debugging. It won't do anything in FINALROM builds.</P>
46<P>The <SPAN class="argument">wram</SPAN> for <CODE>MI_DumpWramList</CODE> is of type <CODE><A href="../mi_constant.html">MIWramPos</A></CODE> and specifies the target WRAM. It should be <CODE>MI_WRAM_A</CODE>, <CODE>MI_WRAM_B</CODE>, or <CODE>MI_WRAM_C</CODE>. The <CODE>MI_DumpWramListAll</CODE> function specifies all WRAMs.</P>
47<P>It will be displayed as follows:<BR>
48</P>
49<BLOCKQUOTE style="background-color:#ffffcc">
50<P><CODE>----WRAM-A (3000000-2ffffff)<BR> ALLOC RESERVE<BR> slot0  ARM9  ARM9<BR> slot1  ARM7  ARM7<BR> slot2  ARM7  ----<BR> slot3  ----  ----<BR></CODE></P>
51</BLOCKQUOTE>
52<P>ALLOC indicates the processor that has been assigned. In the example above, slot 0 is assigned to the ARM9, and slots 1 and 2 are assigned to the ARM7. Slot 3 has not yet been assigned.</P>
53<P>RESERVE indicates processors that are reserved. In the example above, slot 0 has been reserved for the ARM9, and slot 1 has been reserved for the ARM7. Slots 2 and 3 are not reserved.</P>
54<P>In the example above, the WRAM-A region is shown as <CODE>0x3000000-0x2ffffff</CODE>, but in some situations (such as when WRAM-A is configured so that it cannot be read from the ARM9), the end of this region takes a lower-order address than the start of this region.</P>
55<P><CODE>MI_DumpWramList_A</CODE> is the #define directive of <CODE>MI_DumpWramList( MI_WRAM_A )</CODE>. <BR><CODE>MI_DumpWramList_B</CODE> is the #define directive of <CODE>MI_DumpWramList( MI_WRAM_B )</CODE>. <BR><CODE>MI_DumpWramList_C</CODE> is the #define directive of <CODE>MI_DumpWramList( MI_WRAM_C )</CODE>. <BR></P>
56<H3><BR> Display Mode</H3>
57<P>If an accurate display of all information takes priority over speed, as it does in this function, we recommend temporarily setting the display to blocking mode. See <A href="../../os/debug/OS_SetPrintBlockingMode.html"><CODE>OS_SetPrintBlockingMode</CODE></A> for details.</P>
58<h2>See Also</h2>
59<P><A href="about_Wram.html">Overview (Work RAM)</A><BR><A href="../mi_constant.html">MI-Related Constants</A><BR> <CODE><A href="../../os/debug/OS_SetPrintBlockingMode.html">OS_SetPrintBlockingMode</A></CODE></P>
60<H2>Revision History</H2>
61<P>2009/07/27 Added <B>Display Mode</B>.<BR> 2007/10/24 Initial version.</P>
62<hr><p>CONFIDENTIAL</p></body>
63</html>
64