diff options
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.c')
-rw-r--r-- | UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.c b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.c index f81389463f..6f59b49305 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.c @@ -70,12 +70,10 @@ PerformRemainingTasks ( SetMemMapAttributes (MemoryAttributesTable);
}
- if (IsRestrictedMemoryAccess ()) {
- //
- // Set page table itself to be read-only
- //
- SetPageTableAttributes ();
- }
+ //
+ // Set page table itself to be read-only
+ //
+ SetPageTableAttributes ();
//
// Measure performance of SmmCpuFeaturesCompleteSmmReadyToLock() from caller side
|