Allow specifying an allocation type when allocating pages

This commit is contained in:
2025-08-20 20:59:31 +02:00
parent 9f6121e9b2
commit 88b3a57962
8 changed files with 18 additions and 16 deletions

View File

@@ -616,7 +616,7 @@ BlReadFile(IN PEFI_FILE_HANDLE DirHandle,
Pages = EFI_SIZE_TO_PAGES(FileInfo->FileSize);
/* Allocate pages */
Status = BlAllocateMemoryPages(Pages, &Address);
Status = BlAllocateMemoryPages(AllocateAnyPages, Pages, &Address);
if(Status != STATUS_EFI_SUCCESS)
{
/* Pages allocation failure */