IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length,\r
IN UINT64 Attributes,\r
- IN EFI_PHYSICAL_ADDRESS VirtualMask,\r
OUT BOOLEAN *FlushTlbs OPTIONAL\r
)\r
{\r
// Mask in new attributes and/or permissions\r
PageTableEntry |= EntryValue;\r
\r
- if (VirtualMask != 0) {\r
- // Make this virtual address point at a physical page\r
- PageTableEntry &= ~VirtualMask;\r
- }\r
-\r
if (CurrentPageTableEntry != PageTableEntry) {\r
Mva = (VOID *)(UINTN)((((UINTN)FirstLevelIdx) << TT_DESCRIPTOR_SECTION_BASE_SHIFT) + (PageTableIndex << TT_DESCRIPTOR_PAGE_BASE_SHIFT));\r
\r
UpdateSectionEntries (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length,\r
- IN UINT64 Attributes,\r
- IN EFI_PHYSICAL_ADDRESS VirtualMask\r
+ IN UINT64 Attributes\r
)\r
{\r
EFI_STATUS Status = EFI_SUCCESS;\r
(FirstLevelIdx + i) << TT_DESCRIPTOR_SECTION_BASE_SHIFT,\r
TT_DESCRIPTOR_SECTION_SIZE,\r
Attributes,\r
- VirtualMask,\r
NULL);\r
} else {\r
// still a section entry\r
\r
// mask in new attributes and/or permissions\r
Descriptor |= EntryValue;\r
- if (VirtualMask != 0) {\r
- Descriptor &= ~VirtualMask;\r
- }\r
\r
if (CurrentDescriptor != Descriptor) {\r
Mva = (VOID *)(UINTN)(((UINTN)FirstLevelTable) << TT_DESCRIPTOR_SECTION_BASE_SHIFT);\r
ArmSetMemoryAttributes (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length,\r
- IN UINT64 Attributes,\r
- IN EFI_PHYSICAL_ADDRESS VirtualMask\r
+ IN UINT64 Attributes\r
)\r
{\r
EFI_STATUS Status;\r
"SetMemoryAttributes(): MMU section 0x%lx length 0x%lx to %lx\n",\r
BaseAddress, ChunkLength, Attributes));\r
\r
- Status = UpdateSectionEntries (BaseAddress, ChunkLength, Attributes,\r
- VirtualMask);\r
+ Status = UpdateSectionEntries (BaseAddress, ChunkLength, Attributes);\r
\r
FlushTlbs = TRUE;\r
} else {\r
BaseAddress, ChunkLength, Attributes));\r
\r
Status = UpdatePageEntries (BaseAddress, ChunkLength, Attributes,\r
- VirtualMask, &FlushTlbs);\r
+ &FlushTlbs);\r
}\r
\r
if (EFI_ERROR (Status)) {\r