From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 AB75D2205B90A for ; Thu, 11 Jan 2018 01:55:59 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F668272C8; Thu, 11 Jan 2018 10:01:07 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-14.rdu2.redhat.com [10.10.120.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E80C5D70B; Thu, 11 Jan 2018 10:01:05 +0000 (UTC) To: Jian J Wang , edk2-devel@lists.01.org Cc: Dandan Bi , Eric Dong References: <20180111010205.10136-1-jian.j.wang@intel.com> From: Laszlo Ersek Message-ID: <4bb75e68-3d22-7172-f1b7-e54fc42d96cf@redhat.com> Date: Thu, 11 Jan 2018 11:01:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180111010205.10136-1-jian.j.wang@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 11 Jan 2018 10:01:12 +0000 (UTC) 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 09:56:00 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 01/11/18 02:02, Jian J Wang wrote: > 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/MpInitLib/DxeMpLib.c > index e832c16eca..d2bcef53d6 100644 > --- a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c > +++ b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c > @@ -326,7 +326,7 @@ InitMpGlobalData ( > CpuInfoInHob = (CPU_INFO_IN_HOB *)(UINTN)CpuMpData->CpuInfoInHob; > for (Index = 0; Index < CpuMpData->CpuCount; ++Index) { > if (CpuInfoInHob != NULL && CpuInfoInHob[Index].ApTopOfStack != 0) { > - StackBase = CpuInfoInHob[Index].ApTopOfStack - CpuMpData->CpuApStackSize; > + StackBase = (UINTN)CpuInfoInHob[Index].ApTopOfStack - CpuMpData->CpuApStackSize; > } else { > StackBase = CpuMpData->Buffer + Index * CpuMpData->CpuApStackSize; > } > Reviewed-by: Laszlo Ersek