diff options
author | Jian J Wang <jian.j.wang@intel.com> | 2017-09-22 09:31:19 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2017-09-22 11:51:00 +0800 |
commit | 96207191fd715e268c6ba6d6ac8650ef914e1686 (patch) | |
tree | de7794db9d518bd44da19e935289e59e98719168 /UefiCpuPkg/CpuDxe/CpuPageTable.c | |
parent | 09e8678380aaaf0a5ef59179ff59e0a045d1b0bf (diff) | |
download | edk2-96207191fd715e268c6ba6d6ac8650ef914e1686.tar.gz edk2-96207191fd715e268c6ba6d6ac8650ef914e1686.tar.bz2 edk2-96207191fd715e268c6ba6d6ac8650ef914e1686.zip |
UefiCpuPkg/CpuDxe: Fix GCC build warning
There're uninitialized variables warning reported by GCC.
This patch will fix it. The original commit is
c1cab54ce57c2608b8b3ea051c7041f036f21153
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Anthony PERARD <anthony.perard@citrix.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>
Diffstat (limited to 'UefiCpuPkg/CpuDxe/CpuPageTable.c')
-rw-r--r-- | UefiCpuPkg/CpuDxe/CpuPageTable.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuPageTable.c b/UefiCpuPkg/CpuDxe/CpuPageTable.c index ae93f3f553..d312eb66f8 100644 --- a/UefiCpuPkg/CpuDxe/CpuPageTable.c +++ b/UefiCpuPkg/CpuDxe/CpuPageTable.c @@ -802,8 +802,12 @@ RefreshGcdMemoryAttributesFromPaging ( GetCurrentPagingContext (&PagingContext);
- BaseAddress = 0;
- PageLength = 0;
+ DoUpdate = FALSE;
+ Capabilities = 0;
+ Attributes = 0;
+ BaseAddress = 0;
+ PageLength = 0;
+
for (Index = 0; Index < NumberOfDescriptors; Index++) {
if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
continue;
|