From a2a986f92917b2ed5851e3e703236f8eb8ed490d Mon Sep 17 00:00:00 2001 From: Akira Moroo Date: Sun, 16 Oct 2022 17:05:40 +0900 Subject: [PATCH] [Do Not Merge] efi: Allocate heap region as EFI BootServices code This change is created for aarch64 Linux boot, but it fails to boot x86_64 Windows. We need to investigate this conflict. Signed-off-by: Akira Moroo --- src/efi/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/efi/mod.rs b/src/efi/mod.rs index 1046112d..afbb3d8c 100644 --- a/src/efi/mod.rs +++ b/src/efi/mod.rs @@ -987,7 +987,7 @@ fn populate_allocator(info: &dyn boot::Info, image_address: u64, image_size: u64 fn init_heap_allocator(size: usize) { let (status, heap_start) = ALLOCATOR.borrow_mut().allocate_pages( efi::ALLOCATE_ANY_PAGES, - efi::BOOT_SERVICES_CODE, + efi::RUNTIME_SERVICES_DATA, size as u64 / PAGE_SIZE, 0, );