mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
UefiCpuPkg: remove unneeded code in SmmProfilePFHandler
Remove unneeded calling of SmmProfileMapPFAddress () in SmmProfileMapPFAddress if SMM profile is not started. Previously, before SMM profile is started at ReadyToLock, SMM page table only covers [0, 4G]. The access to the range above 4G will cause PF. SmmProfileMapPFAddress is needed here to map the PF address before SMM profile is started. Now we always create full mapping SMM page table in the SmmInitPageTable(). When SMM profile is enabled, before SMM profile is started at ReadyToLock, SMM page table covers [0, MaxSupportedPhysicalAddress]. So the case that access to the range above 4G causes PF won't happen anymore. Then we can remove the calling of SmmProfileMapPFAddress before SMM profile is started. Signed-off-by: Dun Tan <dun.tan@intel.com>
This commit is contained in:
parent
8b8ac5d986
commit
cff0641360
@ -1333,14 +1333,6 @@ SmmProfilePFHandler (
|
||||
UINT8 SoftSmiValue;
|
||||
EFI_SMM_SAVE_STATE_IO_INFO IoInfo;
|
||||
|
||||
if (!mSmmProfileStart) {
|
||||
//
|
||||
// If SMM profile does not start, call original page fault handler.
|
||||
//
|
||||
SmmProfileMapPFAddress ();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mBtsSupported) {
|
||||
DisableBTS ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user