Anonymous user
Detecting Memory (x86): Difference between revisions
no edit summary
[unchecked revision] | [unchecked revision] |
m (Change header type of EFI section) |
No edit summary |
||
Line 342:
that does not exactly match your expectations.
On UEFI, you BootServices->GetMemoryMap. This function is easier to use then E820 and is the solution on new UEFI machines. Basically, to use, first you call once to get the size of the memory map. Then you allocate a buffer of that size, and then call again to get the map itself. For example:
<source lang="c">
|