From nobody Wed May 8 22:27:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77765+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77765+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1626256131; cv=none; d=zohomail.com; s=zohoarc; b=IP9gXk71efAaaifLl69hmhJ/Bd0ghONUB0uyXPq1zzcuARgdoLFU5jG5TgNRi0o8CzDinhJSEHYdnPyL1fjbmMXO7n8Knk1QN1taTXLH9enbtcTPbqjJ1o7rybSiGvPzUGFzMnYBLdHN0qBJMxBda4AnDNOJkUqNYLrJjN8WbhE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626256131; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=1Hs3OAAx6pFgI+1yWTrxgY8AuSgcSaxfEG4Sia7XbiY=; b=FDK/3iqKnxp8H1MLqKBchboD5RfZdUMwBHVbJo0Ob5QAq5paELJW4cBLEJz7ZtEd9zzB2OXiNKhe/9zNME2WnicmjcVpQl4po0xvb2tZlx3v4Mg1Ruy4flWAgji08BH121260QsS7xXfcLuc9XZ187pFsIYkiDrTHNBnJaraOLA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77765+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1626256131274957.2054757917683; Wed, 14 Jul 2021 02:48:51 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id HJf0YY1788612xWEeO3x2BRL; Wed, 14 Jul 2021 02:48:50 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.4482.1626256128147368173 for ; Wed, 14 Jul 2021 02:48:50 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10044"; a="274148408" X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="274148408" X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2021 02:48:45 -0700 X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="430376369" X-Received: from basfe001.gar.corp.intel.com ([10.66.244.207]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2021 02:48:42 -0700 From: "Ashraf Ali S" To: devel@edk2.groups.io Cc: Ashraf Ali S , Ray Ni , Rahul Kumar , Debkumar De , Harry Han , Catharine West , Digant H Solanki , Sangeetha V Subject: [edk2-devel] [PATCH] UefiCpuPkg: SecCoreNative without ResetVector Date: Wed, 14 Jul 2021 15:18:17 +0530 Message-Id: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,ashraf.ali.s@intel.com X-Gm-Message-State: 2RlcdK4OecRm6lhs3F6om5nFx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1626256130; bh=AseDw8AbyErx6hy3xkECyf0L87hiqkVJ+toDSWh9Cas=; h=Cc:Date:From:Reply-To:Subject:To; b=EFrFkHEXGBblIlF5T4q/Qhrz3gdlNBHwxbbWLYzVYDy9ZkHYKm+2dKczk+8hRQIvgDR aSy/f9BkTPXRm37ksP8i9t9v3H0mLrZ7MsVmLDIjC1nCkCYlyJIHpuiWzu/5L1Rdk3Q1S 2ID4mgtTwUo2IZdCS5Deruig6kWrFFYTEBs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1626256133081100002 Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3492 Currently SecCore.inf having the resetvector code under IA32. if the user wants to use both SecCore and UefiCpuPkg ResetVector it's not possible, since SecCore and ResetVector(VTF0.INF/ResetVector.inf) are sharing the same GUID which is BFV. to overcome this issue we can create the Duplicate version of the SecCore.inf as SecCoreNative.inf which contains pure SecCore Native functionality without resetvector. SecCoreNative.inf should have the Unique GUID so that it can be used along with UefiCpuPkg ResetVector in there implementation. Signed-off-by: Ashraf Ali S Cc: Ray Ni Cc: Rahul Kumar Cc: Debkumar De Cc: Harry Han Cc: Catharine West Cc: Digant H Solanki Cc: Sangeetha V --- UefiCpuPkg/SecCore/SecCoreNative.inf | 80 ++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 UefiCpuPkg/SecCore/SecCoreNative.inf diff --git a/UefiCpuPkg/SecCore/SecCoreNative.inf b/UefiCpuPkg/SecCore/SecC= oreNative.inf new file mode 100644 index 0000000000..f89a0e5f38 --- /dev/null +++ b/UefiCpuPkg/SecCore/SecCoreNative.inf @@ -0,0 +1,80 @@ +## @file +# SecCoreNative module that implements the SEC phase. +# +# This is the first module taking control after the reset vector. +# The entry point function is _ModuleEntryPoint in PlatformSecLib. +# The entry point function will start with protected mode, since the +# the transistion to flat mode it done by the resetvector, enable +# temporary memory and call into SecStartup(). +# +# Copyright (c) 2021, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D SecCore + MODULE_UNI_FILE =3D SecCore.uni + FILE_GUID =3D 43CA74CA-7D29-49A0-B3B9-20F84015B27D + MODULE_TYPE =3D SEC + VERSION_STRING =3D 1.0 + + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 EBC +# + +[Sources] + SecMain.c + SecMain.h + FindPeiCore.c + SecBist.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + UefiCpuPkg/UefiCpuPkg.dec + +[LibraryClasses] + BaseMemoryLib + DebugLib + PlatformSecLib + PcdLib + DebugAgentLib + UefiCpuLib + PeCoffGetEntryPointLib + PeCoffExtraActionLib + CpuExceptionHandlerLib + ReportStatusCodeLib + PeiServicesLib + PeiServicesTablePointerLib + HobLib + +[Ppis] + ## SOMETIMES_CONSUMES + ## PRODUCES + gEfiSecPlatformInformationPpiGuid + ## SOMETIMES_CONSUMES + ## SOMETIMES_PRODUCES + gEfiSecPlatformInformation2PpiGuid + gEfiTemporaryRamDonePpiGuid ## PRODUCES + ## NOTIFY + ## SOMETIMES_CONSUMES + gPeiSecPerformancePpiGuid + gEfiPeiCoreFvLocationPpiGuid + ## CONSUMES + gRepublishSecPpiPpiGuid + +[Guids] + ## SOMETIMES_PRODUCES ## HOB + gEfiFirmwarePerformanceGuid + +[Pcd] + gUefiCpuPkgTokenSpaceGuid.PcdPeiTemporaryRamStackSize ## CONSUMES + gEfiMdeModulePkgTokenSpaceGuid.PcdMigrateTemporaryRamFirmwareVolumes ##= CONSUMES + +[UserExtensions.TianoCore."ExtraFiles"] + SecCoreExtra.uni --=20 2.30.2.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 (#77765): https://edk2.groups.io/g/devel/message/77765 Mute This Topic: https://groups.io/mt/84197987/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-