UefiCpuPkg/CpuDxe: Fix GCC build warning
There're uninitialized variables warning reported by GCC.
This patch will fix it. The original commit is
c1cab54ce5
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>
This commit is contained in:
@@ -802,8 +802,12 @@ RefreshGcdMemoryAttributesFromPaging (
|
|||||||
|
|
||||||
GetCurrentPagingContext (&PagingContext);
|
GetCurrentPagingContext (&PagingContext);
|
||||||
|
|
||||||
BaseAddress = 0;
|
DoUpdate = FALSE;
|
||||||
PageLength = 0;
|
Capabilities = 0;
|
||||||
|
Attributes = 0;
|
||||||
|
BaseAddress = 0;
|
||||||
|
PageLength = 0;
|
||||||
|
|
||||||
for (Index = 0; Index < NumberOfDescriptors; Index++) {
|
for (Index = 0; Index < NumberOfDescriptors; Index++) {
|
||||||
if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
|
if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user