diff options
author | Jian J Wang <jian.j.wang@intel.com> | 2017-12-12 11:12:12 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2017-12-13 11:37:11 +0800 |
commit | 1ea53108f6c1010a00a828d1d59ea28934025415 (patch) | |
tree | 3030beba8077d79f7a78dfcf23b56a3b22a7cdef | |
parent | f9669f09fb53081ba3253ba0f9ac61b68229b761 (diff) | |
download | edk2-1ea53108f6c1010a00a828d1d59ea28934025415.tar.gz edk2-1ea53108f6c1010a00a828d1d59ea28934025415.tar.bz2 edk2-1ea53108f6c1010a00a828d1d59ea28934025415.zip |
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>
-rw-r--r-- | UefiCpuPkg/CpuDxe/CpuMp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index 56ba026152..82145e7624 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -695,6 +695,11 @@ InitializeMpExceptionStackSwitchHandlers ( EssData.Ia32.StackSwitchExceptionNumber = ExceptionNumber;
EssData.Ia32.KnownGoodStackSize = FixedPcdGet32(PcdCpuKnownGoodStackSize);
+ //
+ // Initialize Gdtr to suppress incorrect compiler/analyzer warnings.
+ //
+ Gdtr.Base = 0;
+ Gdtr.Limit = 0;
MpInitLibWhoAmI (&Bsp);
for (Index = 0; Index < mNumberOfProcessors; ++Index) {
//
|