MI_DumpWramList*

Syntax

#include <twl/mi.h>
 
void MI_DumpWramList( MIWramPos wram );
void MI_DumpWramListAll( void );
(define)
void MI_DumpWramList_A();
void MI_DumpWramList_B();
void MI_DumpWramList_C();

Arguments

wram WRAM to display.

Return Values

None.

Description

Displays the status of the WRAM.
This function is used for debugging. It won't do anything in FINALROM builds.

The wram for MI_DumpWramList is of type MIWramPos and specifies the target WRAM. It should be MI_WRAM_A, MI_WRAM_B, or MI_WRAM_C. The MI_DumpWramListAll function specifies all WRAMs.

It will be displayed as follows:

----WRAM-A (3000000-2ffffff)
ALLOC RESERVE
slot0 ARM9 ARM9
slot1 ARM7 ARM7
slot2 ARM7 ----
slot3 ---- ----

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.

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.

In the example above, the WRAM-A region is shown as 0x3000000-0x2ffffff, 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.

MI_DumpWramList_A is the #define directive of MI_DumpWramList( MI_WRAM_A ).
MI_DumpWramList_B is the #define directive of MI_DumpWramList( MI_WRAM_B ).
MI_DumpWramList_C is the #define directive of MI_DumpWramList( MI_WRAM_C ).


Display Mode

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 OS_SetPrintBlockingMode for details.

See Also

Overview (Work RAM)
MI-Related Constants
OS_SetPrintBlockingMode

Revision History

2009/07/27 Added Display Mode.
2007/10/24 Initial version.


CONFIDENTIAL