MdeModulePkg: use LShiftU64() instead of "<<" to avoid IA32 build error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
Fu Siyuan 2017-03-01 12:03:26 +08:00
parent 5ab97a64b5
commit 4879e13097
2 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ CoreAddMemoryDescriptor (
CoreReleaseMemoryLock (); CoreReleaseMemoryLock ();
ApplyMemoryProtectionPolicy (EfiMaxMemoryType, Type, Start, ApplyMemoryProtectionPolicy (EfiMaxMemoryType, Type, Start,
EFI_PAGES_TO_SIZE (NumberOfPages)); LShiftU64 (NumberOfPages, EFI_PAGE_SHIFT));
// //
// If Loading Module At Fixed Address feature is enabled. try to allocate memory with Runtime code & Boot time code type // If Loading Module At Fixed Address feature is enabled. try to allocate memory with Runtime code & Boot time code type

View File

@ -851,7 +851,7 @@ InitializeDxeNxMemoryProtectionPolicy (
if (Attributes != 0) { if (Attributes != 0) {
SetUefiImageMemoryAttributes ( SetUefiImageMemoryAttributes (
MemoryMapEntry->PhysicalStart, MemoryMapEntry->PhysicalStart,
EFI_PAGES_TO_SIZE (MemoryMapEntry->NumberOfPages), LShiftU64 (MemoryMapEntry->NumberOfPages, EFI_PAGE_SHIFT),
Attributes); Attributes);
} }
MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize); MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);