From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=dandan.bi@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 D07DE2220D202 for ; Wed, 10 Jan 2018 17:11:09 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2018 17:11:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,342,1511856000"; d="scan'208";a="23070103" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 10 Jan 2018 17:11:09 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 10 Jan 2018 17:11:07 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.189]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Thu, 11 Jan 2018 09:11:05 +0800 From: "Bi, Dandan" To: "Wang, Jian J" , "edk2-devel@lists.01.org" CC: "Dong, Eric" , Laszlo Ersek Thread-Topic: [PATCH] UefiCpuPkg/MpInitLib: fix 32-bit build error Thread-Index: AQHTinfXkoOILsu/E0C1vI/Zm7v40KNt3Pig Date: Thu, 11 Jan 2018 01:11:05 +0000 Message-ID: <3C0D5C461C9E904E8F62152F6274C0BB3BA0B3FC@shsmsx102.ccr.corp.intel.com> References: <20180111010205.10136-1-jian.j.wang@intel.com> In-Reply-To: <20180111010205.10136-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/MpInitLib: fix 32-bit build error X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 01:11:10 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Dandan Bi Thanks, Dandan -----Original Message----- From: Wang, Jian J=20 Sent: Thursday, January 11, 2018 9:02 AM To: edk2-devel@lists.01.org Cc: Bi, Dandan ; Dong, Eric ; Las= zlo Ersek Subject: [PATCH] UefiCpuPkg/MpInitLib: fix 32-bit build error Cc: Dandan Bi Cc: Eric Dong Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang --- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c b/UefiCpuPkg/Library/M= pInitLib/DxeMpLib.c index e832c16eca..d2bcef53d6 100644 --- a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c @@ -326,7 +326,7 @@ InitMpGlobalData ( CpuInfoInHob =3D (CPU_INFO_IN_HOB *)(UINTN)CpuMpData->CpuInfoInHob; for (Index =3D 0; Index < CpuMpData->CpuCount; ++Index) { if (CpuInfoInHob !=3D NULL && CpuInfoInHob[Index].ApTopOfStack !=3D = 0) { - StackBase =3D CpuInfoInHob[Index].ApTopOfStack - CpuMpData->CpuApS= tackSize; + StackBase =3D (UINTN)CpuInfoInHob[Index].ApTopOfStack - CpuMpData-= >CpuApStackSize; } else { StackBase =3D CpuMpData->Buffer + Index * CpuMpData->CpuApStackSiz= e; } --=20 2.15.1.windows.2