[boot] Build the kernel mem map from the UEFI one

Created kernel args memory map structure, looping through UEFI's memory
map to copy and condense.

Tags: boot memory
This commit is contained in:
Justin C. Miller
2020-05-10 16:26:17 -07:00
parent 21b0b08908
commit c713f4ff6f
4 changed files with 142 additions and 4 deletions

View File

@@ -56,7 +56,8 @@ void mark_pointer_fixup(void **p);
/// Struct that represents UEFI's memory map. Contains a pointer to the map data
/// as well as the data on how to read it.
struct efi_mem_map {
struct efi_mem_map
{
using desc = uefi::memory_descriptor;
using iterator = offset_iterator<desc>;