From nobody Sun Feb 8 11:20:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43533+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43533+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1562807835; cv=none; d=zoho.com; s=zohoarc; b=POuRfPz0mwiriYcsio7Dag3SwN3KFM1P4AGzwqu2e4axolcN2zTgS/QwToZIeXiJszaOo/TeWJy0j6c7bpu81qo0syQAXbjIS3fs2vbdty2PVcxxnNJbeIHgdFO/4ifkE+nMFrkM0XeUZX17zhGHEegfE3Tq+58JexIpzFY8qCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562807835; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=4BcMrYLm02nxLSKxoXa3wnwM8kpUHL2XXApVXrFoTak=; b=emKqzfWaUnP26WQ26bX0SUrltL9X2X3n/72g5W/tPjObHrzRaL0UuA87QXKK7pICSpN6Cd8uGKEm2Yhp/jmMRxjkZkAT5rVxuELGIg93/OKLlHEESVBnP31/msDp+p+kWs+okTAgDAu4+UWbVz2FFcR+q6c30dURE1uOalxr8Zw= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43533+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562807835766968.10529053301; Wed, 10 Jul 2019 18:17:15 -0700 (PDT) Return-Path: X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Wed, 10 Jul 2019 18:17:14 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2019 18:17:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,476,1557212400"; d="scan'208";a="168486922" X-Received: from ray-dev.ccr.corp.intel.com ([10.239.9.16]) by orsmga003.jf.intel.com with ESMTP; 10 Jul 2019 18:17:12 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Michael D Kinney , Eric Dong , Laszlo Ersek Subject: [edk2-devel] [PATCH] UefiCpuPkg/PiSmmCpu: Fix GCC7/GCC8 build failure Date: Thu, 11 Jul 2019 09:16:38 +0800 Message-Id: <20190711011638.95268-1-ray.ni@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562807835; bh=t7bJ/XDxmzdiZtYeytbLHdWkuBM7VgsljGiMPVV7CDg=; h=Cc:Date:From:Reply-To:Subject:To; b=ht+kn+4iwhqJZDDZ4OiZrnrP5vT4J0GJhHNLbFPmjVDfx2PuVnbAmc4F85vii6jLaLM 3P6bnlHxcf2Fmi3E7EJgoZdT8wd4Qg8TzXNg+6nHGXrOLm0mDAZuX5xKvD1UZTep3LJxD EKQPcr+rppvfKU6X84JBuENWs7AMpJQMa/0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ray Ni Cc: Michael D Kinney Cc: Eric Dong Cc: Laszlo Ersek Reviewed-by: Eric Dong Reviewed-by: Laszlo Ersek --- UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c b/UefiCpuPkg/PiSmmCpuD= xeSmm/X64/PageTbl.c index c31160735a..a3b62f7787 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c @@ -571,7 +571,7 @@ ReclaimPages ( // // First, find the leaf entry has the smallest access record value // - for (Pml5Index =3D 0; Pml5Index < Enable5LevelPaging ? (EFI_PAGE_SIZE / = sizeof (*Pml4)) : 1; Pml5Index++) { + for (Pml5Index =3D 0; Pml5Index < (Enable5LevelPaging ? (EFI_PAGE_SIZE /= sizeof (*Pml4)) : 1); Pml5Index++) { if ((Pml5[Pml5Index] & IA32_PG_P) =3D=3D 0 || (Pml5[Pml5Index] & IA32_= PG_PMNT) !=3D 0) { // // If the PML5 entry is not present or is masked, skip it --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43533): https://edk2.groups.io/g/devel/message/43533 Mute This Topic: https://groups.io/mt/32422914/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-