/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/ |
D | SmmProfileArch.c | 141 UINT64 *PageTable, in RestorePageTableAbove4G() argument 155 ASSERT ((PageTable != NULL) && (IsValidPFAddress != NULL)); in RestorePageTableAbove4G() 167 PageTable = (UINT64*)(AsmReadCr3 () & PHYSICAL_ADDRESS_MASK); in RestorePageTableAbove4G() 169 if ((PageTable[PTIndex] & IA32_PG_P) != 0) { in RestorePageTableAbove4G() 171 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK); in RestorePageTableAbove4G() 173 if ((PageTable[PTIndex] & IA32_PG_P) != 0) { in RestorePageTableAbove4G() 175 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK); in RestorePageTableAbove4G() 178 if ((PageTable[PTIndex] & IA32_PG_PS) != 0) { in RestorePageTableAbove4G() 182 Address = (UINT64)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK); in RestorePageTableAbove4G() 190 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK); in RestorePageTableAbove4G() [all …]
|
D | PageTbl.c | 137 IN UINTN PageTable in SetStaticPageTable() argument 163 PageMap = (VOID *) PageTable; in SetStaticPageTable() 665 UINT64 *PageTable; in SmiDefaultPFHandler() local 742 PageTable = Pml4; in SmiDefaultPFHandler() 746 if ((PageTable[PTIndex] & IA32_PG_P) == 0) { in SmiDefaultPFHandler() 750 PageTable[PTIndex] = AllocPage () | PAGE_ATTRIBUTE_BITS; in SmiDefaultPFHandler() 755 UpperEntry = PageTable + PTIndex; in SmiDefaultPFHandler() 761 PageTable[PTIndex] |= (UINT64)IA32_PG_A; in SmiDefaultPFHandler() 762 SetAccNum (PageTable + PTIndex, 7); in SmiDefaultPFHandler() 763 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & gPhyMask); in SmiDefaultPFHandler() [all …]
|
D | SmmProfileArch.h | 80 UINT64 *PageTable,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/ |
D | SetIdtEntry.c | 229 UINT64 *PageTable; in PageFaultHandler() local 241 PageTable = (UINT64*)(UINTN)(AsmReadCr3 () & mPhyMask); in PageFaultHandler() 245 if ((PageTable[PTIndex] & IA32_PG_P) == 0) { in PageFaultHandler() 246 AcquirePage (&PageTable[PTIndex]); in PageFaultHandler() 248 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & mPhyMask); in PageFaultHandler() 252 PageTable[PTIndex] = (PFAddress & ~((1ull << 30) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler() 254 if ((PageTable[PTIndex] & IA32_PG_P) == 0) { in PageFaultHandler() 255 AcquirePage (&PageTable[PTIndex]); in PageFaultHandler() 257 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & mPhyMask); in PageFaultHandler() 260 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler()
|
/device/linaro/bootloader/edk2/DuetPkg/DxeIpl/Ia32/ |
D | Paging.c | 54 UINT8 *PageTable in EnableNullPointerProtection() argument 59 …PageTableEntry4KB = (IA32_PAGE_TABLE_ENTRY_4K *)((UINTN)PageTable + EFI_PAGE_NUMBER_4M * EFI_PAGE_… in EnableNullPointerProtection() 72 UINT8 *PageTable in Ia32Create4KPageTables() argument 89 …PageTableEntry4KB = (IA32_PAGE_TABLE_ENTRY_4K *)((UINTN)PageTable + EFI_PAGE_NUMBER_4M * EFI_PAGE_… in Ia32Create4KPageTables() 90 PageDirectoryEntry4KB = (IA32_PAGE_DIRECTORY_ENTRY_4K *)((UINTN)PageTable); in Ia32Create4KPageTables() 113 UINT8 *PageTable in Ia32Create4MPageTables() argument 121 TempPageTable = PageTable; in Ia32Create4MPageTables()
|
D | EnterDxeCore.c | 22 IN VOID *PageTable in EnterDxeMain() argument
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/X64/ |
D | X64Entry.c | 153 UINT64 *PageTable; in PageFaultHandler() local 175 PageTable = (UINT64*)(UINTN)(AsmReadCr3 () & PhyMask); in PageFaultHandler() 179 if ((PageTable[PTIndex] & IA32_PG_P) == 0) { in PageFaultHandler() 180 AcquirePage (PageFaultContext, &PageTable[PTIndex]); in PageFaultHandler() 182 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PhyMask); in PageFaultHandler() 186 PageTable[PTIndex] = (PFAddress & ~((1ull << 30) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler() 188 if ((PageTable[PTIndex] & IA32_PG_P) == 0) { in PageFaultHandler() 189 AcquirePage (PageFaultContext, &PageTable[PTIndex]); in PageFaultHandler() 191 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PhyMask); in PageFaultHandler() 194 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler()
|
/device/linaro/bootloader/edk2/DuetPkg/DxeIpl/X64/ |
D | Paging.c | 51 UINT8 *PageTable in EnableNullPointerProtection() argument 56 PageTableEntry4KB = (X64_PAGE_TABLE_ENTRY_4K *) (PageTable + gPageNum2M * EFI_PAGE_SIZE_4K); in EnableNullPointerProtection() 68 UINT8 *PageTable in X64Create4KPageTables() argument 90 PageTableEntry4KB = (X64_PAGE_TABLE_ENTRY_4K *)(PageTable + gPageNum2M * EFI_PAGE_SIZE_4K); in X64Create4KPageTables() 92 PageDirectoryEntry4KB = (X64_PAGE_DIRECTORY_ENTRY_4K *) (PageTable + 2 * EFI_PAGE_SIZE_4K); in X64Create4KPageTables() 115 UINT8 *PageTable in X64Create2MPageTables() argument 127 TempPageTable = PageTable; in X64Create2MPageTables()
|
D | EnterDxeCore.c | 22 IN VOID *PageTable in EnterDxeMain() argument 25 AsmWriteCr3 ((UINTN) PageTable); in EnterDxeMain()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | MpService.c | 739 VOID *PageTable; in Gen4GPageTable() local 769 PageTable = AllocatePageTableMemory (5 + PagesNeeded); in Gen4GPageTable() 770 ASSERT (PageTable != NULL); in Gen4GPageTable() 772 PageTable = (VOID *)((UINTN)PageTable); in Gen4GPageTable() 773 Pte = (UINT64*)PageTable; in Gen4GPageTable() 784 …Pte[Index] = (UINTN)PageTable + EFI_PAGE_SIZE * (Index + 1) + (Is32BitPageTable ? IA32_PAE_PDPTE_A… in Gen4GPageTable() 796 Pages = (UINTN)PageTable + EFI_PAGES_TO_SIZE (5); in Gen4GPageTable() 798 Pdpte = (UINT64*)PageTable; in Gen4GPageTable() 826 return (UINT32)(UINTN)PageTable; in Gen4GPageTable() 839 IN UINT64 *PageTable, in SetCacheability() argument [all …]
|
D | SmmProfile.c | 1140 UINT64 *PageTable, in RestorePageTableBelow4G() argument 1154 ASSERT (PageTable[PTIndex] != 0); in RestorePageTableBelow4G() 1155 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK); in RestorePageTableBelow4G() 1162 ASSERT (PageTable[PTIndex] != 0); in RestorePageTableBelow4G() 1163 PageTable = (UINT64*)(UINTN)(PageTable[PTIndex] & PHYSICAL_ADDRESS_MASK); in RestorePageTableBelow4G() 1169 if ((PageTable[PTIndex] & IA32_PG_PS) != 0) { in RestorePageTableBelow4G() 1182 mLastPFEntryValue[CpuIndex][PFIndex] = PageTable[PTIndex]; in RestorePageTableBelow4G() 1183 mLastPFEntryPointer[CpuIndex][PFIndex] = &PageTable[PTIndex]; in RestorePageTableBelow4G() 1190 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)); in RestorePageTableBelow4G() 1191 PageTable[PTIndex] |= (UINT64)IA32_PG_PS; in RestorePageTableBelow4G() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenPage/ |
D | GenPage.c | 57 #define CONVERT_BIN_PAGE_ADDRESS(a) ((UINT8 *) a - PageTable + gPageTableBaseAddress) 139 UINT8 *PageTable; in CreateIdentityMappingPageTables() local 148 PageTable = (void *)malloc (EFI_PAGE_NUMBER * EFI_SIZE_OF_PAGE); in CreateIdentityMappingPageTables() 149 if (PageTable == NULL) { in CreateIdentityMappingPageTables() 153 memset (PageTable, 0, (EFI_PAGE_NUMBER * EFI_SIZE_OF_PAGE)); in CreateIdentityMappingPageTables() 154 PageTablePtr = PageTable; in CreateIdentityMappingPageTables() 212 return PageTable; in CreateIdentityMappingPageTables()
|
/device/linaro/bootloader/edk2/ArmPkg/Drivers/CpuDxe/Arm/ |
D | Mmu.c | 369 volatile ARM_PAGE_TABLE_ENTRY *PageTable; in UpdatePageEntries() local 451 PageTable = (ARM_PAGE_TABLE_ENTRY *)TT_DESCRIPTOR_PAGE_BASE_ADDRESS(Descriptor); in UpdatePageEntries() 458 CurrentPageTableEntry = PageTable[PageTableIndex]; in UpdatePageEntries() 480 PageTable[PageTableIndex] = PageTableEntry; in UpdatePageEntries() 481 ArmUpdateTranslationTableEntry ((VOID *)&PageTable[PageTableIndex], Mva); in UpdatePageEntries() 630 volatile ARM_PAGE_TABLE_ENTRY *PageTable; in ConvertSectionToPages() local 651 PageTable = (volatile ARM_PAGE_TABLE_ENTRY *)(UINTN)PageTableAddr; in ConvertSectionToPages() 655 … PageTable[Index] = TT_DESCRIPTOR_PAGE_BASE_ADDRESS(BaseAddress + (Index << 12)) | PageDescriptor; in ConvertSectionToPages() 762 IN UINT32 *PageTable, in GetMemoryRegionPage() argument 782 PageDescriptor = PageTable[TableIndex]; in GetMemoryRegionPage() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/SmmBaseHelper/ |
D | SmmBaseHelper.c | 445 UINT64 *PageTable; in InitCpuStatePageTable() local 460 PageTable = (UINT64 *)(UINTN)(AsmReadCr3 () & mPhyMask); in InitCpuStatePageTable() 461 PageTable = (UINT64 *)(UINTN)(PageTable[BitFieldRead64 (HookAddress, 39, 47)] & mPhyMask); in InitCpuStatePageTable() 462 PageTable = (UINT64 *)(UINTN)(PageTable[BitFieldRead64 (HookAddress, 30, 38)] & mPhyMask); in InitCpuStatePageTable() 464 Pdpte = (UINT64 *)(UINTN)PageTable; in InitCpuStatePageTable() 469 PageTable = (UINT64 *)(UINTN)(Pde & mPhyMask); in InitCpuStatePageTable() 472 PageTable = AllocatePages (1); in InitCpuStatePageTable() 473 ASSERT (PageTable != NULL); in InitCpuStatePageTable() 476 PageTable[Index] = Address | BIT0 | BIT1; // Present and RW in InitCpuStatePageTable() 479 …Pdpte[BitFieldRead64 (HookAddress, 21, 29)] = (UINT64)(UINTN)PageTable | BIT0 | BIT1; // Present a… in InitCpuStatePageTable() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/ |
D | SmmProfileArch.c | 58 UINT64 *PageTable, in RestorePageTableAbove4G() argument
|
D | SmmProfileArch.h | 72 UINT64 *PageTable,
|
/device/linaro/bootloader/edk2/DuetPkg/DxeIpl/ |
D | DxeInit.c | 112 IN VOID *PageTable
|