From: Zhang, Shenglei Date: Thu, 15 Aug 2019 02:23:14 +0000 (+0800) Subject: MdeModulePkg/DxeIplPeim: Initialize pointer PageMapLevel5Entry X-Git-Tag: edk2-stable201908~76 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0680d08683a90cc740c507e5a8bb1016bf5f790e;p=mirror_edk2.git MdeModulePkg/DxeIplPeim: Initialize pointer PageMapLevel5Entry Initialize PageMapLevel5Entry at the beginning of the function. This commit will fix a GCC 4.8.5 build failure introduced by commit b3527dedc3951f061c5a73cb4fb2b0f95f47e08b. OvmfPkg build failure wtih gcc 4.8.5 still exists at latest edk2 version. The commit 46f8a6891606746ca8b1e684ac379ce271306dc0 seems not to fix the build failure completely. Cc: Dandan Bi Signed-off-by: Shenglei Zhang Reviewed-by: Liming Gao Reviewed-by: Hao A Wu --- diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c index 2389f3eb48..516cf908bc 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -652,6 +652,11 @@ CreateIdentityMappingPageTables ( UINT64 AddressEncMask; IA32_CR4 Cr4; + // + // Set PageMapLevel5Entry to suppress incorrect compiler/analyzer warnings + // + PageMapLevel5Entry = NULL; + // // Make sure AddressEncMask is contained to smallest supported address field //