Home
last modified time | relevance | path

Searched refs:PageTable (Results 1 – 17 of 17) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/
DSmmProfileArch.c141 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 …]
DPageTbl.c137 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 …]
DSmmProfileArch.h80 UINT64 *PageTable,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/
DSetIdtEntry.c229 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/
DPaging.c54 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()
DEnterDxeCore.c22 IN VOID *PageTable in EnterDxeMain() argument
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/X64/
DX64Entry.c153 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/
DPaging.c51 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()
DEnterDxeCore.c22 IN VOID *PageTable in EnterDxeMain() argument
25 AsmWriteCr3 ((UINTN) PageTable); in EnterDxeMain()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DMpService.c739 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 …]
DSmmProfile.c1140 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/
DGenPage.c57 #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/
DMmu.c369 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()
655PageTable[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/
DSmmBaseHelper.c445 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/
DSmmProfileArch.c58 UINT64 *PageTable, in RestorePageTableAbove4G() argument
DSmmProfileArch.h72 UINT64 *PageTable,
/device/linaro/bootloader/edk2/DuetPkg/DxeIpl/
DDxeInit.c112 IN VOID *PageTable