switch (MemoryType) {\r
case EfiRuntimeServicesCode:\r
case EfiACPIMemoryNVS:\r
- PageAlignment = EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT;\r
+ PageAlignment = RUNTIME_PAGE_ALLOCATION_GRANULARITY;\r
break;\r
case EfiRuntimeServicesData:\r
case EfiACPIReclaimMemory:\r
ASSERT (FALSE);\r
- PageAlignment = EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT;\r
+ PageAlignment = RUNTIME_PAGE_ALLOCATION_GRANULARITY;\r
break;\r
case EfiBootServicesCode:\r
case EfiLoaderCode:\r
/**\r
Return the EFI memory permission attribute associated with memory\r
type 'MemoryType' under the configured DXE memory protection policy.\r
+\r
+ @param MemoryType Memory type.\r
**/\r
STATIC\r
UINT64\r
\r
/**\r
Remove exec permissions from all regions whose type is identified by\r
- PcdDxeNxMemoryProtectionPolicy\r
+ PcdDxeNxMemoryProtectionPolicy.\r
**/\r
STATIC\r
VOID\r
if (Attributes != 0) {\r
SetUefiImageMemoryAttributes (\r
MemoryMapEntry->PhysicalStart,\r
- EFI_PAGES_TO_SIZE (MemoryMapEntry->NumberOfPages),\r
+ LShiftU64 (MemoryMapEntry->NumberOfPages, EFI_PAGE_SHIFT),\r
Attributes);\r
}\r
MemoryMapEntry = NEXT_MEMORY_DESCRIPTOR (MemoryMapEntry, DescriptorSize);\r
}\r
\r
/**\r
- Returns whether we are currently executing in SMM mode\r
+ Returns whether we are currently executing in SMM mode.\r
**/\r
STATIC\r
BOOLEAN\r