mirror of https://github.com/acidanthera/audk.git
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:
parent
5ab97a64b5
commit
4879e13097
|
@ -554,7 +554,7 @@ CoreAddMemoryDescriptor (
|
|||
CoreReleaseMemoryLock ();
|
||||
|
||||
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
|
||||
|
|
|
@ -851,7 +851,7 @@ InitializeDxeNxMemoryProtectionPolicy (
|
|||
if (Attributes != 0) {
|
||||
SetUefiImageMemoryAttributes (
|
||||
MemoryMapEntry->PhysicalStart,
|
||||
EFI_PAGES_TO_SIZE (MemoryMapEntry->NumberOfPages),
|
||||
LShiftU64 (MemoryMapEntry->NumberOfPages, EFI_PAGE_SHIFT),
|
||||
Attributes);
|
||||
}
|
||||
MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);
|
||||
|
|
Loading…
Reference in New Issue