/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/ |
D | SmmProfileArch.c | 141 UINT64 PFAddress, in RestorePageTableAbove4G() argument 167 PTIndex = BitFieldRead64 (PFAddress, 39, 47); in RestorePageTableAbove4G() 171 PTIndex = BitFieldRead64 (PFAddress, 30, 38); in RestorePageTableAbove4G() 175 PTIndex = BitFieldRead64 (PFAddress, 21, 29); in RestorePageTableAbove4G() 182 …if ((Address & PHYSICAL_ADDRESS_MASK & ~((1ull << 21) - 1)) == ((PFAddress & PHYSICAL_ADDRESS_MASK… in RestorePageTableAbove4G() 194 PTIndex = BitFieldRead64 (PFAddress, 12, 20); in RestorePageTableAbove4G() 196 …if ((Address & PHYSICAL_ADDRESS_MASK & ~((1ull << 12) - 1)) == (PFAddress & PHYSICAL_ADDRESS_MASK … in RestorePageTableAbove4G() 209 if (IsAddressValid (PFAddress, &Nx)) { in RestorePageTableAbove4G() 226 PFAddress = AsmReadCr2 (); in RestorePageTableAbove4G() 228 PTIndex = BitFieldRead64 (PFAddress, 39, 47); in RestorePageTableAbove4G() [all …]
|
D | PageTbl.c | 511 UINT64 PFAddress; in SmiDefaultPFHandler() local 531 PFAddress = AsmReadCr2 (); in SmiDefaultPFHandler() 533 Status = GetPlatformPageTableAttribute (PFAddress, &PageSize, &NumOfPages, &PageAttribute); in SmiDefaultPFHandler() 589 PTIndex = BitFieldRead64 (PFAddress, StartBit, StartBit + 8); in SmiDefaultPFHandler() 610 PTIndex = BitFieldRead64 (PFAddress, StartBit, StartBit + 8); in SmiDefaultPFHandler() 623 PageTable[PTIndex] = (PFAddress & gPhyMask & ~((1ull << EndBit) - 1)) | in SmiDefaultPFHandler() 631 PFAddress += (1ull << EndBit); in SmiDefaultPFHandler() 650 UINTN PFAddress; in SmiPFHandler() local 656 PFAddress = AsmReadCr2 (); in SmiPFHandler() 662 (PFAddress >= mCpuHotPlugData.SmrrBase) && in SmiPFHandler() [all …]
|
D | SmmProfileArch.h | 81 UINT64 PFAddress,
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/ |
D | PageTbl.c | 93 UINTN PFAddress; in SmiPFHandler() local 99 PFAddress = AsmReadCr2 (); in SmiPFHandler() 102 (PFAddress >= mCpuHotPlugData.SmrrBase) && in SmiPFHandler() 103 (PFAddress < (mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize))) { in SmiPFHandler() 111 if ((PFAddress < mCpuHotPlugData.SmrrBase) || in SmiPFHandler() 112 (PFAddress >= mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) { in SmiPFHandler() 114 …UG ((EFI_D_ERROR, "Code executed on IP(0x%x) out of SMM range after SMM is locked!\n", PFAddress)); in SmiPFHandler()
|
D | SmmProfileArch.c | 59 UINT64 PFAddress, in RestorePageTableAbove4G() argument
|
D | SmmProfileArch.h | 73 UINT64 PFAddress,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/ |
D | SetIdtEntry.c | 230 UINT64 PFAddress; in PageFaultHandler() local 233 PFAddress = AsmReadCr2 (); in PageFaultHandler() 234 DEBUG ((EFI_D_ERROR, "BootScript - PageFaultHandler: Cr2 - %lx\n", PFAddress)); in PageFaultHandler() 236 if (PFAddress >= mPhyMask + SIZE_4KB) { in PageFaultHandler() 239 PFAddress &= mPhyMask; in PageFaultHandler() 243 PTIndex = BitFieldRead64 (PFAddress, 39, 47); in PageFaultHandler() 249 PTIndex = BitFieldRead64 (PFAddress, 30, 38); in PageFaultHandler() 252 PageTable[PTIndex] = (PFAddress & ~((1ull << 30) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler() 258 PTIndex = BitFieldRead64 (PFAddress, 21, 29); in PageFaultHandler() 260 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/X64/ |
D | X64Entry.c | 154 UINT64 PFAddress; in PageFaultHandler() local 167 PFAddress = AsmReadCr2 (); in PageFaultHandler() 168 DEBUG ((EFI_D_ERROR, "CapsuleX64 - PageFaultHandler: Cr2 - %lx\n", PFAddress)); in PageFaultHandler() 170 if (PFAddress >= PhyMask + SIZE_4KB) { in PageFaultHandler() 173 PFAddress &= PhyMask; in PageFaultHandler() 177 PTIndex = BitFieldRead64 (PFAddress, 39, 47); in PageFaultHandler() 183 PTIndex = BitFieldRead64 (PFAddress, 30, 38); in PageFaultHandler() 186 PageTable[PTIndex] = (PFAddress & ~((1ull << 30) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler() 192 PTIndex = BitFieldRead64 (PFAddress, 21, 29); in PageFaultHandler() 194 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)) | IA32_PG_P | IA32_PG_RW | IA32_PG_PS; in PageFaultHandler()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | SmmProfile.c | 1196 UINT64 PFAddress, in RestorePageTableBelow4G() argument 1208 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 39, 47); in RestorePageTableBelow4G() 1216 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 30, 38); in RestorePageTableBelow4G() 1223 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 21, 29); in RestorePageTableBelow4G() 1245 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)); in RestorePageTableBelow4G() 1261 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 12, 20); in RestorePageTableBelow4G() 1279 PageTable[PTIndex] = (PFAddress & ~((1ull << 12) - 1)); in RestorePageTableBelow4G() 1301 UINT64 PFAddress; in SmmProfilePFHandler() local 1329 PFAddress = AsmReadCr2 (); in SmmProfilePFHandler() 1332 if (PFAddress <= 0xFFFFFFFF) { in SmmProfilePFHandler() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/SmmBaseHelper/ |
D | SmmBaseHelper.c | 349 UINT64 PFAddress; in PageFaultHandler() local 356 PFAddress = AsmReadCr2 (); in PageFaultHandler() 359 if (((UINTN)mFrameworkSmst->CpuSaveState & ~(SIZE_2MB-1)) == (PFAddress & ~(SIZE_2MB-1))) { in PageFaultHandler() 360 if ((UINTN)mFrameworkSmst->CpuSaveState <= PFAddress && in PageFaultHandler() 361 PFAddress < (UINTN)mFrameworkSmst->CpuSaveState + EFI_PAGES_TO_SIZE (NumCpuStatePages) in PageFaultHandler() 363 mCpuStatePageTable[BitFieldRead64 (PFAddress, 12, 20)] |= BIT0 | BIT1; // present and rw in PageFaultHandler() 365 ReadWriteCpuStatePage (PFAddress & ~(SIZE_4KB-1), TRUE); in PageFaultHandler()
|