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
b3527dedc3.

OvmfPkg build failure wtih gcc 4.8.5 still exists at latest edk2 version.
The commit 46f8a68916 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>
This commit is contained in:
Zhang, Shenglei 2019-08-15 10:23:14 +08:00 committed by Hao A Wu
parent 48d8d4d80b
commit 0680d08683
1 changed files with 5 additions and 0 deletions

View File

@ -652,6 +652,11 @@ CreateIdentityMappingPageTables (
UINT64 AddressEncMask; UINT64 AddressEncMask;
IA32_CR4 Cr4; IA32_CR4 Cr4;
//
// Set PageMapLevel5Entry to suppress incorrect compiler/analyzer warnings
//
PageMapLevel5Entry = NULL;
// //
// Make sure AddressEncMask is contained to smallest supported address field // Make sure AddressEncMask is contained to smallest supported address field
// //