]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Mem/Page.c
MdeModulePkg: use LShiftU64() instead of "<<" to avoid IA32 build error.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Mem / Page.c
index d596db7ad4278163a3fea6a9c26f8601c5d4b5f5..7e8fa94d7d4fe33d589f9c172281c8d0de5436e9 100644 (file)
@@ -554,7 +554,7 @@ CoreAddMemoryDescriptor (
   CoreReleaseMemoryLock ();\r
 \r
   ApplyMemoryProtectionPolicy (EfiMaxMemoryType, Type, Start,\r
-    EFI_PAGES_TO_SIZE (NumberOfPages));\r
+    LShiftU64 (NumberOfPages, EFI_PAGE_SHIFT));\r
 \r
   //\r
   // If Loading Module At Fixed Address feature is enabled. try to allocate memory with Runtime code & Boot time code type\r