diff options
author | Alex Ionescu <aionescu@gmail.com> | 2017-11-06 17:47:45 +0300 |
---|---|---|
committer | Alex Ionescu <aionescu@gmail.com> | 2017-11-06 17:47:45 +0300 |
commit | 23f7da3a3cd78a54c51cb53a8246e8e553cac6c7 (patch) | |
tree | 287f954d084ea07f52cd422af1b57ffe85d83011 | |
parent | a44424d9a8e8756d1deeb8fdb8dc6aeef99b5d57 (diff) |
Fix Issue #20
Use EFI_SIZE_TO_PAGES to fix issue #20
-rw-r--r-- | uefi/shvos.c | 2 |
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 |