From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: More than 10 MX records returned) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EBE6A21F322D6 for ; Mon, 11 Dec 2017 19:23:54 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2017 19:28:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,393,1508828400"; d="scan'208";a="186160239" Received: from jwang36-mobl2.ccr.corp.intel.com ([10.239.192.47]) by fmsmga006.fm.intel.com with ESMTP; 11 Dec 2017 19:28:31 -0800 From: Jian J Wang To: edk2-devel@lists.01.org Cc: Eric Dong , Wu Hao Date: Tue, 12 Dec 2017 11:28:28 +0800 Message-Id: <20171212032828.14000-1-jian.j.wang@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 Subject: [PATCH] UefiCpuPkg/CpuDxe: Add initialization to local variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 03:23:55 -0000 The purpose of the patch is just to avoid complaining from compiler and static check tool. Cc: Eric Dong Cc: Wu Hao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang --- UefiCpuPkg/CpuDxe/CpuMp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index 56ba026152..61018c9950 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -695,6 +695,8 @@ InitializeMpExceptionStackSwitchHandlers ( EssData.Ia32.StackSwitchExceptionNumber = ExceptionNumber; EssData.Ia32.KnownGoodStackSize = FixedPcdGet32(PcdCpuKnownGoodStackSize); + Gdtr.Base = 0; + Gdtr.Limit = 0; MpInitLibWhoAmI (&Bsp); for (Index = 0; Index < mNumberOfProcessors; ++Index) { // -- 2.15.1.windows.2