Re: New memory map structure
Posted: Sun Oct 25, 2015 8:27 am
It has been more than a year I started this topic. The first post did make sense back then but now I am leaning toward using this UEFI structure also on non-UEFI computers. I totally ignored the fact that on UEFI computers I would need to give the map back if I wanted to use runtime services. Having a native format described in the first post for the OS itself (to which memory maps are converted, whether they came from the UEFI or not) does not offer any significant advantages in this case. The OS will handle memory in its own internal structures so the format would have been only a transfer format. Converting "BIOS formats" to the UEFI format (with good validity checks) makes sense at this point and the "post-boot" state is uniform between the legacy and modern systems.Owen wrote:But why not the UEFI memory map structure? No translation on UEFI. On non-UEFI, map the "native" format into a UEFI memory map. And if you need a type which UEFI doesn't define? Well, as said, there are 2^31 type codes reserved for arbitrary use by the OS.
Additionally, whatever part of your system sets up paging needs to make a call back into UEFI with the address map anyway. If all you have is a translated map, you're in for a world of hurt there.
I did and do like the gapless memory map.Owen wrote:So why invent something new and perfect?