/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/ |
D | PageTbl.c | 93 UINTN PFAddress; in SmiPFHandler() local 101 PFAddress = AsmReadCr2 (); in SmiPFHandler() 107 if ((PFAddress >= mCpuHotPlugData.SmrrBase) && in SmiPFHandler() 108 (PFAddress < (mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize))) { in SmiPFHandler() 112 (PFAddress >= GuardPageAddress) && in SmiPFHandler() 113 (PFAddress < (GuardPageAddress + EFI_PAGE_SIZE))) { in SmiPFHandler() 126 DEBUG ((DEBUG_ERROR, "SMM exception at execution (0x%x)\n", PFAddress)); in SmiPFHandler() 131 DEBUG ((DEBUG_ERROR, "SMM exception at access (0x%x)\n", PFAddress)); in SmiPFHandler() 143 if ((PFAddress < mCpuHotPlugData.SmrrBase) || in SmiPFHandler() 144 (PFAddress >= mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) { in SmiPFHandler() [all …]
|
D | SmmProfileArch.c | 59 UINT64 PFAddress, in RestorePageTableAbove4G() argument
|
D | SmmProfileArch.h | 73 UINT64 PFAddress,
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/ |
D | SmmProfileArch.c | 142 UINT64 PFAddress, in RestorePageTableAbove4G() argument 168 PTIndex = BitFieldRead64 (PFAddress, 39, 47); in RestorePageTableAbove4G() 172 PTIndex = BitFieldRead64 (PFAddress, 30, 38); in RestorePageTableAbove4G() 176 PTIndex = BitFieldRead64 (PFAddress, 21, 29); in RestorePageTableAbove4G() 183 …if ((Address & PHYSICAL_ADDRESS_MASK & ~((1ull << 21) - 1)) == ((PFAddress & PHYSICAL_ADDRESS_MASK… in RestorePageTableAbove4G() 195 PTIndex = BitFieldRead64 (PFAddress, 12, 20); in RestorePageTableAbove4G() 197 …if ((Address & PHYSICAL_ADDRESS_MASK & ~((1ull << 12) - 1)) == (PFAddress & PHYSICAL_ADDRESS_MASK … in RestorePageTableAbove4G() 210 if (IsAddressValid (PFAddress, &Nx)) { in RestorePageTableAbove4G() 227 PFAddress = AsmReadCr2 (); in RestorePageTableAbove4G() 229 PTIndex = BitFieldRead64 (PFAddress, 39, 47); in RestorePageTableAbove4G() [all …]
|
D | PageTbl.c | 667 UINT64 PFAddress; in SmiDefaultPFHandler() local 687 PFAddress = AsmReadCr2 (); in SmiDefaultPFHandler() 689 Status = GetPlatformPageTableAttribute (PFAddress, &PageSize, &NumOfPages, &PageAttribute); in SmiDefaultPFHandler() 745 PTIndex = BitFieldRead64 (PFAddress, StartBit, StartBit + 8); in SmiDefaultPFHandler() 766 PTIndex = BitFieldRead64 (PFAddress, StartBit, StartBit + 8); in SmiDefaultPFHandler() 779 PageTable[PTIndex] = (PFAddress & gPhyMask & ~((1ull << EndBit) - 1)) | in SmiDefaultPFHandler() 787 PFAddress += (1ull << EndBit); in SmiDefaultPFHandler() 806 UINTN PFAddress; in SmiPFHandler() local 814 PFAddress = AsmReadCr2 (); in SmiPFHandler() 816 if (mCpuSmmStaticPageTable && (PFAddress >= LShiftU64 (1, (mPhysicalAddressBits - 1)))) { in SmiPFHandler() [all …]
|
D | SmmProfileArch.h | 81 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 | 1141 UINT64 PFAddress, in RestorePageTableBelow4G() argument 1153 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 39, 47); in RestorePageTableBelow4G() 1161 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 30, 38); in RestorePageTableBelow4G() 1168 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 21, 29); in RestorePageTableBelow4G() 1190 PageTable[PTIndex] = (PFAddress & ~((1ull << 21) - 1)); in RestorePageTableBelow4G() 1206 PTIndex = (UINTN)BitFieldRead64 (PFAddress, 12, 20); in RestorePageTableBelow4G() 1224 PageTable[PTIndex] = (PFAddress & ~((1ull << 12) - 1)); in RestorePageTableBelow4G() 1246 UINT64 PFAddress; in SmmProfilePFHandler() local 1273 PFAddress = AsmReadCr2 (); in SmmProfilePFHandler() 1276 if (PFAddress <= 0xFFFFFFFF) { in SmmProfilePFHandler() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/SmmBaseHelper/ |
D | SmmBaseHelper.c | 347 UINT64 PFAddress; in PageFaultHandler() local 353 PFAddress = AsmReadCr2 (); in PageFaultHandler() 356 if (((UINTN)mFrameworkSmst->CpuSaveState & ~(SIZE_2MB-1)) == (PFAddress & ~(SIZE_2MB-1))) { in PageFaultHandler() 357 if ((UINTN)mFrameworkSmst->CpuSaveState <= PFAddress && in PageFaultHandler() 358 PFAddress < (UINTN)mFrameworkSmst->CpuSaveState + EFI_PAGES_TO_SIZE (NumCpuStatePages) in PageFaultHandler() 360 mCpuStatePageTable[BitFieldRead64 (PFAddress, 12, 20)] |= BIT0 | BIT1; // present and rw in PageFaultHandler() 362 ReadWriteCpuStatePage (PFAddress & ~(SIZE_4KB-1), TRUE); in PageFaultHandler()
|