diff --git a/src/hello/hello.d b/src/hello/hello.d index 9948770..4c2f47e 100644 --- a/src/hello/hello.d +++ b/src/hello/hello.d @@ -112,9 +112,11 @@ private bool get_memory_map() for (size_t i = 0u; i < n_entries; i++) { EFI_MEMORY_DESCRIPTOR * descriptor = cast(EFI_MEMORY_DESCRIPTOR *)&scratch_base[i * descriptor_size]; - if ((descriptor.Type == EfiConventionalMemory) || + if ((descriptor.Type == EfiLoaderCode) || + (descriptor.Type == EfiLoaderData) || (descriptor.Type == EfiBootServicesCode) || - (descriptor.Type == EfiBootServicesData)) + (descriptor.Type == EfiBootServicesCode) || + (descriptor.Type == EfiConventionalMemory)) { bootinfo.memory_map[di].base = descriptor.PhysicalStart; bootinfo.memory_map[di].size = descriptor.NumberOfPages * 4096u;