diff options
author | Ray Ni <ray.ni@intel.com> | 2019-07-11 09:16:03 +0800 |
---|---|---|
committer | Ray Ni <ray.ni@intel.com> | 2019-07-12 15:44:45 +0800 |
commit | c630f69df01e832aeae45c37f33d2b93e98c9389 (patch) | |
tree | 1822e0ea6ff79b8ba84f0d01caef95a28c53003d /UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | |
parent | 4eee0cc7cc0db74489b99c19eba056b53eda6358 (diff) | |
download | edk2-c630f69df01e832aeae45c37f33d2b93e98c9389.zip edk2-c630f69df01e832aeae45c37f33d2b93e98c9389.tar.gz edk2-c630f69df01e832aeae45c37f33d2b93e98c9389.tar.bz2 |
UefiCpuPkg/PiSmmCpu: ReclaimPages: fix incorrect operator binding
Fixes: 4eee0cc7c
Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c')
-rw-r--r-- | UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c index c311607..a3b62f7 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c @@ -571,7 +571,7 @@ ReclaimPages ( //
// First, find the leaf entry has the smallest access record value
//
- for (Pml5Index = 0; Pml5Index < Enable5LevelPaging ? (EFI_PAGE_SIZE / sizeof (*Pml4)) : 1; Pml5Index++) {
+ for (Pml5Index = 0; Pml5Index < (Enable5LevelPaging ? (EFI_PAGE_SIZE / sizeof (*Pml4)) : 1); Pml5Index++) {
if ((Pml5[Pml5Index] & IA32_PG_P) == 0 || (Pml5[Pml5Index] & IA32_PG_PMNT) != 0) {
//
// If the PML5 entry is not present or is masked, skip it
|