mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
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) {
|
if ((Pte[0] & IA32_PG_PS) == 0) {
|
||||||
// 4K-page entries are already mapped. Just hide the first one anyway.
|
// 4K-page entries are already mapped. Just hide the first one anyway.
|
||||||
Pte = (UINT64*)(UINTN)(Pte[0] & ~mAddressEncMask & ~(EFI_PAGE_SIZE - 1));
|
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 {
|
} else {
|
||||||
// Create 4K-page entries
|
// Create 4K-page entries
|
||||||
Pages = (UINTN)AllocatePageTableMemory (1);
|
Pages = (UINTN)AllocatePageTableMemory (1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user