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=192.55.52.43; helo=mga05.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 B22C221F322D6 for ; Mon, 11 Dec 2017 19:38:30 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2017 19:43:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,393,1508828400"; d="scan'208";a="2046228" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga008.jf.intel.com with ESMTP; 11 Dec 2017 19:43:07 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Dec 2017 19:42:52 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 11 Dec 2017 19:42:52 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Tue, 12 Dec 2017 11:42:50 +0800 From: "Dong, Eric" To: "Wang, Jian J" , "edk2-devel@lists.01.org" CC: "Wu, Hao A" Thread-Topic: [PATCH] UefiCpuPkg/CpuDxe: Add initialization to local variable Thread-Index: AQHTcvlL1RHovL7mYUeFHKSTL2juUaM/EIYQ Date: Tue, 12 Dec 2017 03:42:50 +0000 Message-ID: References: <20171212032828.14000-1-jian.j.wang@intel.com> In-Reply-To: <20171212032828.14000-1-jian.j.wang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [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:38:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Eric Dong -----Original Message----- From: Wang, Jian J=20 Sent: Tuesday, December 12, 2017 11:28 AM To: edk2-devel@lists.01.org Cc: Dong, Eric; Wu, Hao A Subject: [PATCH] UefiCpuPkg/CpuDxe: Add initialization to local variable The purpose of the patch is just to avoid complaining from compiler and sta= tic 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 56= ba026152..61018c9950 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -695,6 +695,8 @@ InitializeMpExceptionStackSwitchHandlers ( EssData.Ia32.StackSwitchExceptionNumber =3D ExceptionNumber; EssData.Ia32.KnownGoodStackSize =3D FixedPcdGet32(PcdCpuKnownGoodStackSi= ze); =20 + Gdtr.Base =3D 0; + Gdtr.Limit =3D 0; MpInitLibWhoAmI (&Bsp); for (Index =3D 0; Index < mNumberOfProcessors; ++Index) { // -- 2.15.1.windows.2