efi: change heap allocation type to GRUB_EFI_LOADER_CODE
[grub.git] / grub-core / kern / efi / mm.c
index b97b05f..ac2a4c5 100644 (file)
@@ -403,7 +403,9 @@ add_memory_regions (grub_efi_memory_descriptor_t *memory_map,
          pages = required_pages;
        }
 
-      addr = grub_efi_allocate_fixed (start, pages);
+      addr = grub_efi_allocate_pages_real (start, pages,
+                                          GRUB_EFI_ALLOCATE_ADDRESS,
+                                          GRUB_EFI_LOADER_CODE);      
       if (! addr)
        grub_fatal ("cannot allocate conventional memory %p with %u pages",
                    (void *) ((grub_addr_t) start),