14 lines
315 B
C
14 lines
315 B
C
|
|
|
|
|
|
void mm_init()
|
|
{
|
|
dword *memmap_entries = (dword *) 0x9040A;
|
|
memmap_entry *maps = (memmap_entry *) 0x92000;
|
|
dword a;
|
|
for (a=0;a<(*memmap_entries);a++)
|
|
printf("Entry %x:\tBase: %x\n\t\tLimit: %x\n\t\tAttributes: %x\n", a, maps[a].base.lowdword, maps[a].limit.lowdword, maps[a].attributes);
|
|
}
|
|
|
|
|