From 16421357ba7c40104d6359e8c7a7f670b6f08167 Mon Sep 17 00:00:00 2001 From: Jianyong Wu Date: Wed, 5 Jul 2023 09:59:01 +0000 Subject: [PATCH] efi/alloc: Bump maximum number of memory allocations Increasing the maximum number of memory allocations is required to support booting the version of GRUB used in Ubuntu 20.04 for AArch64. Fixes: #261 Signed-off-by: Jianyong Wu --- src/efi/alloc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/efi/alloc.rs b/src/efi/alloc.rs index 810214ce..0907ceea 100644 --- a/src/efi/alloc.rs +++ b/src/efi/alloc.rs @@ -23,7 +23,7 @@ struct Allocation { descriptor: MemoryDescriptor, } -const MAX_ALLOCATIONS: usize = 256; +const MAX_ALLOCATIONS: usize = 512; #[derive(Copy, Clone)] pub struct Allocator {