Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ionescu007/SimpleVisor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Ionescu <aionescu@gmail.com>2017-11-06 17:47:45 +0300
committerAlex Ionescu <aionescu@gmail.com>2017-11-06 17:47:45 +0300
commit23f7da3a3cd78a54c51cb53a8246e8e553cac6c7 (patch)
tree287f954d084ea07f52cd422af1b57ffe85d83011
parenta44424d9a8e8756d1deeb8fdb8dc6aeef99b5d57 (diff)
Fix Issue #20
Use EFI_SIZE_TO_PAGES to fix issue #20
-rw-r--r--uefi/shvos.c2
1 files changed, 1 insertions, 1 deletions
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