From 23f7da3a3cd78a54c51cb53a8246e8e553cac6c7 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 6 Nov 2017 06:47:45 -0800 Subject: Fix Issue #20 Use EFI_SIZE_TO_PAGES to fix issue #20 --- uefi/shvos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uefi/shvos.c b/uefi/shvos.c index 6a8afa9..85a3713 100644 --- a/uefi/shvos.c +++ b/uefi/shvos.c @@ -268,7 +268,7 @@ ShvOsAllocateContigousAlignedMemory ( // // Allocate a contiguous chunk of RAM to back this allocation. // - return AllocateAlignedRuntimePages(Size, EFI_PAGE_SIZE); + return AllocateAlignedRuntimePages(EFI_SIZE_TO_PAGES(Size), EFI_PAGE_SIZE); } UINT64 -- cgit v1.2.3