mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/PiSmmCpuDxeSmm: Fix bitwise size issue
Cc: Eric Dong <eric.dong@intel.com> Cc: Hao Wu <hao.a.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
d7c054f985
commit
79da2d2849
|
@ -891,7 +891,7 @@ Gen4GPageTable (
|
|||
if ((Pte[0] & IA32_PG_PS) == 0) {
|
||||
// 4K-page entries are already mapped. Just hide the first one anyway.
|
||||
Pte = (UINT64*)(UINTN)(Pte[0] & ~mAddressEncMask & ~(EFI_PAGE_SIZE - 1));
|
||||
Pte[0] &= ~IA32_PG_P; // Hide page 0
|
||||
Pte[0] &= ~(UINT64)IA32_PG_P; // Hide page 0
|
||||
} else {
|
||||
// Create 4K-page entries
|
||||
Pages = (UINTN)AllocatePageTableMemory (1);
|
||||
|
|
Loading…
Reference in New Issue