From nobody Sun May 5 14:17:21 2024 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+46529+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+46529+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1566975024; cv=none; d=zoho.com; s=zohoarc; b=KrfapwLO4huwEGFtkHuuR3j78DxA65ygtRa1onwiEd+MSfr8v6afoP/18oEUeLm6UM49SEZZSn9GmN9VrmXNjswxUE5ayopQtqxMnV6qAzPBAhrL+EtzsnD7H4Oz4avFtISY89rA/jnNMZHcNN65NU2yYEzsVtPZmSV3pWbcI5M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566975024; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=sen3MNQNvvS2681f/x7KLtS19UVSqz25EzLeWO+9Hzk=; b=eSJlca7q0OkMMJMJDElH1teZyz/6jLhPTpqqiCYrwbycQ0HtJGMhFvniSJs5V/UUg0kXZv7cvOz3v5p9kAWB5G8dbUAUvZ1/IgZroMA2MmT5u4OiwrjqQz7R/Zdw7f0oDxfcQ8Lkw5Xza44whm1K+NefrEu+ad6n6qbKw+NGz+U= 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+46529+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 1566975024429369.6292438699619; Tue, 27 Aug 2019 23:50:24 -0700 (PDT) Return-Path: X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by groups.io with SMTP; Tue, 27 Aug 2019 23:50:23 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2019 23:50:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,440,1559545200"; d="scan'208";a="174815241" X-Received: from ydong10-win10.ccr.corp.intel.com ([10.239.158.133]) by orsmga008.jf.intel.com with ESMTP; 27 Aug 2019 23:50:21 -0700 From: "Dong, Eric" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek Subject: [edk2-devel] [Patch] UefiCpuPkg/SecCore: get AllSecPpiList after SecPlatformMain. Date: Wed, 28 Aug 2019 14:50:20 +0800 Message-Id: <20190828065020.2992-1-eric.dong@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,eric.dong@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=1566975023; bh=EY5yD36XzXgA97kBEQHTWYuNuHpSJhZMkxi6rmKHBCo=; h=Cc:Date:From:Reply-To:Subject:To; b=We+aqSBlx3Qhxfe8/flPnpC2PwC9ibAh8jwan3bfb6Eovf8R3+/w4xEj0v0lMeefLie kpRSCHaSAMJto7FeE/oUNNPAkHaXF+pY2TJ7lmK/qtMIeQwZlPsnKf70hkTG1pjlsC7C0 XAhSaCttamoIDxwHAAviwabxmbr+q0nF8ys= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2136 SecPlatformMain is a platform hook function which let platform does some update. Some platform may adjust SecCoreData->PeiTemporaryRamBase which caused former saved AllSecPpiList variable invalid. This patch update the logic to get AllSecPpiList after SecPlatformMain. Cc: Ray Ni Cc: Laszlo Ersek Signed-off-by: Eric Dong Reviewed-by: Laszlo Ersek --- UefiCpuPkg/SecCore/SecMain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c index f914446257..66c952b897 100644 --- a/UefiCpuPkg/SecCore/SecMain.c +++ b/UefiCpuPkg/SecCore/SecMain.c @@ -228,7 +228,6 @@ SecStartupPhase2( =20 PeiCoreEntryPoint =3D NULL; SecCoreData =3D (EFI_SEC_PEI_HAND_OFF *) Context; - AllSecPpiList =3D (EFI_PEI_PPI_DESCRIPTOR *) SecCoreData->PeiTemporaryRa= mBase; =20 // // Perform platform specific initialization before entering PeiCore. @@ -282,6 +281,8 @@ SecStartupPhase2( } =20 if (PpiList !=3D NULL) { + AllSecPpiList =3D (EFI_PEI_PPI_DESCRIPTOR *) SecCoreData->PeiTemporary= RamBase; + // // Remove the terminal flag from the terminal PPI // --=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 (#46529): https://edk2.groups.io/g/devel/message/46529 Mute This Topic: https://groups.io/mt/33054478/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-