Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 13b97736c876919b9786055829caaa4fa46984b7 https://github.com/tianocore/edk2/commit/13b97736c876919b9786055829caaa4fa46984b7 Author: Zhiguang Liu <zhiguang....@intel.com> Date: 2023-02-03 (Fri, 03 Feb 2023)
Changed paths: M UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c Log Message: ----------- UefiCpuPkg: Fix SMM code hangs when InitPaging REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4246 In function InitPaging, NumberOfPml5Entries is calculated by below code NumberOfPml5Entries = (UINTN)LShiftU64 (1, SizeOfMemorySpace - 48); If the SizeOfMemorySpace is larger than 48, NumberOfPml5Entries will be larger than 1. However, this doesn't make sense if the hardware doesn't support 5 level page table. Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Reviewed-by: Star Zeng <star.z...@intel.com> Reviewed-by: Wu, Jiaxin <jiaxin...@intel.com> Reviewed-by: Ray Ni <ray...@intel.com> Acked-by: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Eric Dong <eric.d...@intel.com> Signed-off-by: Zhiguang Liu <zhiguang....@intel.com> _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits