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

@@ -64,7 +64,7 @@ XtpMapHardwareMemoryPool(IN PXTBL_PAGE_MAPPING PageMap)
EFI_STATUS Status;
/* Allocate memory */
Status = XtLdrProtocol->Memory.AllocatePages(1, &Address);
Status = XtLdrProtocol->Memory.AllocatePages(AllocateAnyPages, 1, &Address);
if(Status != STATUS_EFI_SUCCESS)
{
/* Memory allocation failure, return error */