UefiCpuPkg/PiSmmCpuDxeSmm: Deadloop if PFAddr is not supported by system

Deadloop if PFAddr is not supported by system, no need check SMM CPU
RestrictedMemory access enable or not.

Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
Jiaxin Wu 2024-09-02 13:51:09 +08:00 committed by mergify[bot]
parent c8ce84d067
commit f6eb069e17
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ SmiPFHandler (
PFAddress = AsmReadCr2 ();
if (mCpuSmmRestrictedMemoryAccess && (PFAddress >= LShiftU64 (1, (mPhysicalAddressBits - 1)))) {
if (PFAddress >= LShiftU64 (1, (mPhysicalAddressBits - 1))) {
DumpCpuContext (InterruptType, SystemContext);
DEBUG ((DEBUG_ERROR, "Do not support address 0x%lx by processor!\n", PFAddress));
CpuDeadLoop ();