]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/PiSmmCpuDxeSmm: Fix bitwise size issue
authorJian J Wang <jian.j.wang@intel.com>
Thu, 12 Oct 2017 04:49:18 +0000 (12:49 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 16 Oct 2017 01:03:41 +0000 (09:03 +0800)
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>
UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c

index 0d3223d714459fa7e616509513272c98ed30cd0f..17459c790ce54ca845f2e8d1cf5aacf008577687 100644 (file)
@@ -891,7 +891,7 @@ Gen4GPageTable (
     if ((Pte[0] & IA32_PG_PS) == 0) {\r
       // 4K-page entries are already mapped. Just hide the first one anyway.\r
       Pte = (UINT64*)(UINTN)(Pte[0] & ~mAddressEncMask & ~(EFI_PAGE_SIZE - 1));\r
-      Pte[0] &= ~IA32_PG_P; // Hide page 0\r
+      Pte[0] &= ~(UINT64)IA32_PG_P; // Hide page 0\r
     } else {\r
       // Create 4K-page entries\r
       Pages = (UINTN)AllocatePageTableMemory (1);\r