UefiCpuPkg/CpuDxe: suppress invalid warning about uninitialized variable
Cc: Eric Dong <eric.dong@intel.com> Cc: Wu Hao <hao.a.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Wu Hao <hao.a.wu@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@@ -695,6 +695,11 @@ InitializeMpExceptionStackSwitchHandlers (
|
|||||||
EssData.Ia32.StackSwitchExceptionNumber = ExceptionNumber;
|
EssData.Ia32.StackSwitchExceptionNumber = ExceptionNumber;
|
||||||
EssData.Ia32.KnownGoodStackSize = FixedPcdGet32(PcdCpuKnownGoodStackSize);
|
EssData.Ia32.KnownGoodStackSize = FixedPcdGet32(PcdCpuKnownGoodStackSize);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Initialize Gdtr to suppress incorrect compiler/analyzer warnings.
|
||||||
|
//
|
||||||
|
Gdtr.Base = 0;
|
||||||
|
Gdtr.Limit = 0;
|
||||||
MpInitLibWhoAmI (&Bsp);
|
MpInitLibWhoAmI (&Bsp);
|
||||||
for (Index = 0; Index < mNumberOfProcessors; ++Index) {
|
for (Index = 0; Index < mNumberOfProcessors; ++Index) {
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user