hi mem - number of entries ?
Posted: Sun May 10, 2009 11:48 pm
how many entries will be there when you int 0x15 with eax = 0x0000E820 ...
when I tried, there are 10 entries ... 3 for free mem, 5 for reserved mem and 2 for ACPI ...
will this be common across x86 ?
when I write the mem map code, how many structures will I have to declare ...
right now I am doing like this :
freemem_1 resb 24
freemem_2 resb 24
freemem_3 resb 24
resmem_1 resb 24
resmem_2 resb 24
resmem_3 resb 24
resmem_4 resb 24
resmem_5 resb 24
acpismem_1 resb 24
acpismem_2 resb 24
first I am doing int 0x15 with one 24 byte entry and calculating the number of entries it generates ... once the loop is done, again doing int 0x15 to fill up the ten 24 byte entries ...
want to know, is this the right method to fill up the mem map ?
i am doing all this in RM (stage2 loader) ... i haven't switched to PM ... will this be easy in PM ?
when I tried, there are 10 entries ... 3 for free mem, 5 for reserved mem and 2 for ACPI ...
will this be common across x86 ?
when I write the mem map code, how many structures will I have to declare ...
right now I am doing like this :
freemem_1 resb 24
freemem_2 resb 24
freemem_3 resb 24
resmem_1 resb 24
resmem_2 resb 24
resmem_3 resb 24
resmem_4 resb 24
resmem_5 resb 24
acpismem_1 resb 24
acpismem_2 resb 24
first I am doing int 0x15 with one 24 byte entry and calculating the number of entries it generates ... once the loop is done, again doing int 0x15 to fill up the ten 24 byte entries ...
want to know, is this the right method to fill up the mem map ?
i am doing all this in RM (stage2 loader) ... i haven't switched to PM ... will this be easy in PM ?