blob: 6db8f18c0da7dc14c4cba45ff75124c312cceceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "os_version.h"
#if !defined(_FINALROM) || BUILD_VERSION < VERSION_J
#include "../os/osint.h"
#include "PR/rmon.h"
#include "PR/region.h"
void __osPrintRegion(void* region) {
register OSRegion* rp = region;
int i;
rmonPrintf("Region = 0x%x\n", rp);
rmonPrintf("\tstartBufferAddress = 0x%x\n", RP(startBufferAddress));
rmonPrintf("\tendAddress = 0x%x\n", RP(endAddress));
rmonPrintf("\tbufferSize = %d\n", RP(bufferSize));
rmonPrintf("\tbufferCount = %d\n", RP(bufferCount));
rmonPrintf("\tfreeList = %d\n", RP(freeList));
rmonPrintf("\talignSize = %d\n", RP(alignSize));
rmonPrintf("\tMemory Header Layout:\n");
for (i = 0; i < RP(bufferCount); i++) {
rmonPrintf("\tBuf[%d]:\tAddress: 0x%x Value: 0x%x\n", i, RP(startBufferAddress) + i * RP(bufferSize),
*(u16*)(RP(startBufferAddress) + i * RP(bufferSize)));
}
}
#endif
|