EFI_PAGE_SIZE instead of magic, small readme tweaks

This commit is contained in:
maksw committed 2026-02-19 17:40:10 +01:00
1 parent 565b8b44c8
commit 498a089387
4 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -324,7 +324,7 @@ EFI_STATUS efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE* SystemTable) {
VOID* HeapMemory = NULL;
UINTN AllocationSize = 512 * 1024 * 1024; // 512 MB
UINTN Pages = AllocationSize / 4096; // UEFI page size is 4KB
UINTN Pages = AllocationSize / EFI_PAGE_SIZE;
EFI_STATUS Status = gBS->AllocatePages(
AllocateAnyPages,