summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorZhang, Shenglei <shenglei.zhang@intel.com>2019-08-15 10:23:14 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-08-16 09:03:18 +0800
commit0680d08683a90cc740c507e5a8bb1016bf5f790e (patch)
treed40636896c2394918f94ecf0e6b9fafa7f6a1d3c /MdeModulePkg/Core
parent48d8d4d80bb299af5422312d92b044cb10a2e790 (diff)
downloadedk2-0680d08683a90cc740c507e5a8bb1016bf5f790e.tar.gz
edk2-0680d08683a90cc740c507e5a8bb1016bf5f790e.tar.bz2
edk2-0680d08683a90cc740c507e5a8bb1016bf5f790e.zip
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 <dandan.bi@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c5
1 files changed, 5 insertions, 0 deletions
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
@@ -653,6 +653,11 @@ CreateIdentityMappingPageTables (
IA32_CR4 Cr4;
//
+ // Set PageMapLevel5Entry to suppress incorrect compiler/analyzer warnings
+ //
+ PageMapLevel5Entry = NULL;
+
+ //
// Make sure AddressEncMask is contained to smallest supported address field
//
AddressEncMask = PcdGet64 (PcdPteMemoryEncryptionAddressOrMask) & PAGING_1G_ADDRESS_MASK_64;