mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
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>
This commit is contained in:
parent
09e8678380
commit
96207191fd
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user