From nobody Thu May 16 03:00:32 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+88731+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+88731+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716360; cv=none; d=zohomail.com; s=zohoarc; b=LDnMA12Kk33qPureS0JWH1IicnEYxnLuQwux1FYtgE5Mkuj3Lyowpiu+s0NAG+OYfYit9PmmeNeQgq3c/vaUok43i/IlH0inK1j4oyFVY0m9iuBOj9eUnbTpyOEFKmfMfbBI07bj2zwoIXW6EF+Fl0H1MLPjvcjxR06mVDvaylE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716360; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=02xYiGQbHkvFMfIam4dbBXYwXNVQ098sjl+k4gZVIuo=; b=UOwCU1oLPZTclPeL/1+ojP/SScdF6x1T94bYgn3xzbMNt1M6BHeelPD/kwPeBC7gAfmAJmpFtDz1BeG8Ht3dqGCCvipUkK+8s4SNz7eRfFI7fhg/RKxblCkZyQLIdkOzJkxbvstqIxY6vlvjlTqjIr+PsPQHHhvynC2A/ovN26s= 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+88731+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 1649716360613408.41720188503086; Mon, 11 Apr 2022 15:32:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Ult1YY1788612xmPZBjgvDKd; Mon, 11 Apr 2022 15:32:40 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web12.27526.1649670362450593366 for ; Mon, 11 Apr 2022 02:46:02 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989875" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989875" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044910" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:00 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Chasel Chiu , Nate DeSimone , Star Zeng Subject: [edk2-devel] [PATCH v1 01/15] IntelFsp2Pkg: Add CpuLib to module INFs that depend on UefiCpuLib Date: Mon, 11 Apr 2022 17:45:41 +0800 Message-Id: <20220411094555.1375-2-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: ypmbTc2uRkppJRvx0bMMEulex1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716360; bh=5o7Y4RwWyYBH/9evucR5gE1ntkJ20X8lxJ19l+ExAtw=; h=Cc:Date:From:Reply-To:Subject:To; b=W5Ma97eu9DjcPWWvcb+ZEHJ3owjyHX7atnDonwx0x0mRJP+w1yvTJ9THTSULekDZEtZ NticIv570xH8W8y5ilsTaORIsqcLUFF2y+ZGEeXPZ/UIwsh15EduFf1LxG0tz88HifvER 1M1y3AJ+ZUxM+Z6l/JFEuyK7liHrR/niqOE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716362802100023 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Yu Pu Reviewed-by: Chasel Chiu --- IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf | 1 + IntelFsp2Pkg/FspSecCore/SecMain.h | 1 + 2 files changed, 2 insertions(+) diff --git a/IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf b/IntelFsp2Pkg/FspSecC= ore/FspSecCoreM.inf index 7b05cae64130..830471adcf2f 100644 --- a/IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf +++ b/IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf @@ -51,6 +51,7 @@ FspSwitchStackLib FspCommonLib FspSecPlatformLib + CpuLib UefiCpuLib =20 [Pcd] diff --git a/IntelFsp2Pkg/FspSecCore/SecMain.h b/IntelFsp2Pkg/FspSecCore/Se= cMain.h index 7794255af13d..edb7447d9eff 100644 --- a/IntelFsp2Pkg/FspSecCore/SecMain.h +++ b/IntelFsp2Pkg/FspSecCore/SecMain.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include =20 --=20 2.30.0.windows.2 -=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 (#88731): https://edk2.groups.io/g/devel/message/88731 Mute This Topic: https://groups.io/mt/90407111/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- From nobody Thu May 16 03:00:32 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+88732+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+88732+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716361; cv=none; d=zohomail.com; s=zohoarc; b=MfVCJk0USCGUB/H1gNoOgMRrnnR3ugKOYhb6gFoMgxj7kGk4UYemaEei6GPuukojfnvDN14yGGKpN2P6S6UYXA805gbUgOnpT/MkPQfULOK60tchUEoIhdBcEM6HTRSNYuV4+TvKOQbWnqjxZiqKsa1YAHe/X0FviUqdRztvPw0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716361; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=XLm6P7dIPTjzxJK5f7BL4Qsx7a4fF1r4OpiLft7xLuA=; b=irvIjCs5OU5GdkKqAdURcdPVFtNar0zFfZ+vcdA6n/ZAxk3+hebl5o/5TMpsgUlQucFfE9w51EEAXuBMmeey3ZnEH6mki4/nfPtuE05nS1hKpPW1bx/uvwnPHq15OGbwdgIxGSOwFq/7TVt9JP6y8QsBWlu/bbWxBKjf8MYsZHM= 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+88732+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 1649716361131520.5109645570426; Mon, 11 Apr 2022 15:32:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id bFKnYY1788612x41PVoBJVpD; Mon, 11 Apr 2022 15:32:40 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.27215.1649670364316286947 for ; Mon, 11 Apr 2022 02:46:04 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989880" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989880" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044929" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:02 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Chasel Chiu , Nate DeSimone , Star Zeng Subject: [edk2-devel] [PATCH v1 02/15] IntelFsp2WrapperPkg: Add CpuLib to module INFs that depend on UefiCpuLib. Date: Mon, 11 Apr 2022 17:45:42 +0800 Message-Id: <20220411094555.1375-3-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: zLymRLkwSfk9ORuI0mmgagZWx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716360; bh=Nhwvaptb7+x5sBMi4fiW8YBRCcvuQt33m//CMSEeE8k=; h=Cc:Date:From:Reply-To:Subject:To; b=rLYuQdlnEuxg1t8YFPbCVKpDkMG2G7CotnsBtPZYLMKy9XbLESpwhuuMI7JmAabpbb/ 0Su2jz4/39aqinVjc3IXDuvbLiP0AjrTfyoAzX9UOawGbs/3ZIKn5A+iO7fGdh3yb2wZ/ cbpCze9FV1jbjGPrgVzckItMxyG3QlCLmZg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649717264810100004 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Yu Pu Reviewed-by: Chasel Chiu --- IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf | 1 + IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf | 1 + 2 files changed, 2 insertions(+) diff --git a/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf b/Inte= lFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf index 5d0e0214015f..e2262d693c55 100644 --- a/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf +++ b/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf @@ -37,6 +37,7 @@ HobLib FspWrapperPlatformLib FspWrapperHobProcessLib + CpuLib UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf b/Inte= lFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf index da0049a65435..0598f85ab3ac 100644 --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf @@ -38,6 +38,7 @@ MemoryAllocationLib FspWrapperPlatformLib FspWrapperHobProcessLib + CpuLib UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib --=20 2.30.0.windows.2 -=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 (#88732): https://edk2.groups.io/g/devel/message/88732 Mute This Topic: https://groups.io/mt/90407112/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- From nobody Thu May 16 03:00:32 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+88733+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+88733+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716361; cv=none; d=zohomail.com; s=zohoarc; b=A7AYbEMU4FIwMTgLRGgzI3LJWJbKWDVIRYSAaKMmagndkLF5kp9x83Dehv9PhKY6tOtPqM6wYNeZGk33tPYPUS2hBLfmF5/DKgDHvp8x8RNtUfeRkhrdXBgazfAT/cqjUSWvTaLSYLBVmIagyI8O70XUNLb2EtBCPyTFQ22zLOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716361; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=NuS7glytmsFv9h2FT61ib9GbVRPuvhvPDCRE3fOdBhU=; b=RzcHlk6nWmF972rcAHordC0MWb0i+7BIB4JepIqwnNGX2rlpxhRcE5AslDK+PgFBaLrehGhUsJMcI68Qx2OfxpNx05Ryb4eM1c4Dwchp8wsTfAxuDuK7DOSzx2Hp0BdmNMEub91mKLWpzp+E3qm930qegcGV6ApVI/uj3Mg7BEA= 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+88733+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 1649716361900998.6775983919076; Mon, 11 Apr 2022 15:32:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id t21LYY1788612x9zEgUxTjeU; Mon, 11 Apr 2022 15:32:41 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.27215.1649670364316286947 for ; Mon, 11 Apr 2022 02:46:06 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989887" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989887" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044940" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:04 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v1 03/15] MdePkg: Add CpuLib to module INFs that depend on UefiCpuLib. Date: Mon, 11 Apr 2022 17:45:43 +0800 Message-Id: <20220411094555.1375-4-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: i2tG94Nju8UYn0teOXfoyN35x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716361; bh=FNQq/D3IyLzZl//cthMMyTjIfrSmtNIT6PLm53PIHdA=; h=Cc:Date:From:Reply-To:Subject:To; b=DxwoiY658LCIRILX0+PkdULnFfpRvbeVkbPLFQqpDmw5vDldAEpbUw3zMvCt8WgCKtH uUu+NmRZc0C4/upwnVXg5GXffjDcLCmpPxnVZKgrmJf4cedf4Ja9obPbfLsOCB3iOH8u4 AkJEGyDhzdcXAW2qeQ3xYmnUfbNf3LNqeNY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649717264808100003 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Yu Pu --- MdePkg/MdeLibs.dsc.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/MdePkg/MdeLibs.dsc.inc b/MdePkg/MdeLibs.dsc.inc index 3c70daf87a0c..322575090239 100644 --- a/MdePkg/MdeLibs.dsc.inc +++ b/MdePkg/MdeLibs.dsc.inc @@ -13,3 +13,4 @@ =20 [LibraryClasses] RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLib= Null.inf + CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf --=20 2.30.0.windows.2 -=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 (#88733): https://edk2.groups.io/g/devel/message/88733 Mute This Topic: https://groups.io/mt/90407113/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- From nobody Thu May 16 03:00:32 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+88734+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+88734+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716361; cv=none; d=zohomail.com; s=zohoarc; b=AQHaLKz9JjcDlxpP5W1MZI0uOEFsqcD7dsCEDFlPb7BsIOfwVNwQaOloX8pE3l6oqu2dhchlwYeJwOlhRoVk7hKhF4aNbw+SitpvYhtuwaBqKPBAawv6l5LAEMF07fh2hUQVBGwzbKSbgyemDt/M3tXVHKl/FK7XMCpN1ylTewY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716361; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=oFoKsvx8D1MP6TcEV+CADZcGNNhGl7eAgqzM+pAAfMc=; b=YCEvc3axgLXk1DjB8D8Wch5ApBwF6kWhWNJXaMt9ITcM/c/dwNV/pooRuDNkQBkqitPzbwx1oLk3FP8VC96nrx9oDye6N+hcGeUqOdam4mwNxtO7b6co9MSLg29Bmg0+CMTEpkqlVNDApcdjiAqGAYWZEnRK04x/OVTz5HaIp+0= 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+88734+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 1649716361900256.2597080493672; Mon, 11 Apr 2022 15:32:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id UbjtYY1788612xSsdKlwgn4D; Mon, 11 Apr 2022 15:32:41 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27681.1649670388892280906 for ; Mon, 11 Apr 2022 02:46:29 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989895" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989895" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044956" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:05 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann Subject: [edk2-devel] [PATCH v1 04/15] OvmfPkg: Add CpuLib to module INFs that depend on UefiCpuLib. Date: Mon, 11 Apr 2022 17:45:44 +0800 Message-Id: <20220411094555.1375-5-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: Pkm9G52PwLAlsp3ExKAK5cn7x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716361; bh=HoplkaKGwoz/2YKAJjPhSA4nmzFlZlOJRHPEzNJVufs=; h=Cc:Date:From:Reply-To:Subject:To; b=ta8w1cVqw2ddCsvf59/FghyVVCEd+ppCuBOPtHKJaC83TDLTm5YtS+dZyCr1WdzLnjt Kw2eDN+h7RxQwhD+2Ui0jK7bnGyFCIRLdhnGfeBzttXne8kChYoBs5hIGE1zlzHIY/TN0 NW1i3ShrzcyEhCakZUWyvLf6aVOjmVPk2oI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649717264811100005 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Yu Pu --- OvmfPkg/Sec/SecMain.c | 1 + OvmfPkg/Sec/SecMain.inf | 1 + 2 files changed, 2 insertions(+) diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c index 2c5561661ef3..2c9e439800c7 100644 --- a/OvmfPkg/Sec/SecMain.c +++ b/OvmfPkg/Sec/SecMain.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/OvmfPkg/Sec/SecMain.inf b/OvmfPkg/Sec/SecMain.inf index 95cf0025e100..6ad366a89333 100644 --- a/OvmfPkg/Sec/SecMain.inf +++ b/OvmfPkg/Sec/SecMain.inf @@ -44,6 +44,7 @@ BaseMemoryLib PeiServicesLib PcdLib + CpuLib UefiCpuLib DebugAgentLib IoLib --=20 2.30.0.windows.2 -=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 (#88734): https://edk2.groups.io/g/devel/message/88734 Mute This Topic: https://groups.io/mt/90407114/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- From nobody Thu May 16 03:00:32 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+88735+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+88735+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716362; cv=none; d=zohomail.com; s=zohoarc; b=E3B3AVHvb4Di1RpDv1SP+SqbWZY33cxvctdaDQBoTg+cEFrnGfvPbJlNxmYpriqBg+l8JZXARnlzV4s9KJ5kKkE+T6Tp3/mtDL3fEX0i7nLYz5SGl1L0qx5bDHKHsCDyNLL1tzO+rEdEHhnbI3xVHnLYMT6rjrOEdaSV/xRWeyw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716362; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=EC0fFQxSNXTMGKWXdIcdNkwEUSQFNJM9GvtF8mDOdgQ=; b=ls854uWYkifU6PqCaktmNRJWX3/HzLi+Q50SxQ3Egk/2b0mXKoJ3NagxSfLN/QD4OcocJ9Le2qcaxHee6asFBCUNqQdNo74GZQmgx+sASNZ9Kj23mzncfkSb15P7Ik9qpvxWOHBc1DbKSMSFERm2ECobTNROfgn5nN7MuUusoLc= 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+88735+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 1649716362841973.9484257728211; Mon, 11 Apr 2022 15:32:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 97xoYY1788612x2UWZr5i9EK; Mon, 11 Apr 2022 15:32:42 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27681.1649670388892280906 for ; Mon, 11 Apr 2022 02:46:29 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989908" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989908" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044968" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:07 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-devel] [PATCH v1 05/15] UefiCpuPkg: Add CpuLib to module INFs that depend on UefiCpuLib. Date: Mon, 11 Apr 2022 17:45:45 +0800 Message-Id: <20220411094555.1375-6-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: QUZa7LB2ClxnKhdg7rw38pGox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716362; bh=TE5cEExKefxe3DDLkS0BfvdiR3YmNVx+KuhmfXg+drE=; h=Cc:Date:From:Reply-To:Subject:To; b=YKT/3Ma2mcO0/2UVj+kK1pbmbcG+4xzVESuFW16MIn4A7qVNnoA6QmwucMtX+3Stprs 7rE+ZHnMfYLQSLkr0kst+aXnaJAoiwyWIesmbMspDPWMFC3wk+5JNlctbt8GDBY4wyDLR m6S1ngmFY4NxrjP2Ulpo82QznaoJACIppYg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716364826100042 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Signed-off-by: Yu Pu --- UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 1 + UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 1 + UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf | 1 + UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf | 1 + UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 1 + UefiCpuPkg/SecCore/SecCore.inf | 1 + UefiCpuPkg/SecCore/SecCoreNative.inf | 1 + UefiCpuPkg/SecCore/SecMain.h | 1 + 8 files changed, 8 insertions(+) diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c b/UefiCpuPkg/Li= brary/BaseXApicLib/BaseXApicLib.c index f9e06b2fca45..a944c3d01cf7 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c @@ -21,6 +21,7 @@ #include #include #include +#include #include =20 // diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c b/U= efiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c index aaa42ff8450b..8b3630d7a302 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c @@ -22,6 +22,7 @@ #include #include #include +#include #include =20 // diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf b/UefiCpuPkg/= Library/BaseXApicLib/BaseXApicLib.inf index 561baa44b0e6..a85b69e0a11c 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf @@ -38,6 +38,7 @@ TimerLib IoLib PcdLib + CpuLib UefiCpuLib =20 [Pcd] diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf b= /UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf index 1e2a4f8b790f..31ebdd39c616 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf @@ -38,6 +38,7 @@ TimerLib IoLib PcdLib + CpuLib UefiCpuLib =20 [Pcd] diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h b/UefiCpuPkg/PiSmmC= puDxeSmm/PiSmmCpuDxeSmm.h index aed872836c99..dfeceec2aadc 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h @@ -43,6 +43,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #include +#include #include #include #include diff --git a/UefiCpuPkg/SecCore/SecCore.inf b/UefiCpuPkg/SecCore/SecCore.inf index ded83beb5272..f021997f271c 100644 --- a/UefiCpuPkg/SecCore/SecCore.inf +++ b/UefiCpuPkg/SecCore/SecCore.inf @@ -47,6 +47,7 @@ PlatformSecLib PcdLib DebugAgentLib + CpuLib UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib diff --git a/UefiCpuPkg/SecCore/SecCoreNative.inf b/UefiCpuPkg/SecCore/SecC= oreNative.inf index b528c5987947..e0a1b44a7e23 100644 --- a/UefiCpuPkg/SecCore/SecCoreNative.inf +++ b/UefiCpuPkg/SecCore/SecCoreNative.inf @@ -44,6 +44,7 @@ PlatformSecLib PcdLib DebugAgentLib + CpuLib UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib diff --git a/UefiCpuPkg/SecCore/SecMain.h b/UefiCpuPkg/SecCore/SecMain.h index 029bee3e7e40..189fcf932625 100644 --- a/UefiCpuPkg/SecCore/SecMain.h +++ b/UefiCpuPkg/SecCore/SecMain.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include --=20 2.30.0.windows.2 -=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 (#88735): https://edk2.groups.io/g/devel/message/88735 Mute This Topic: https://groups.io/mt/90407115/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- From nobody Thu May 16 03:00:32 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+88736+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+88736+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716363; cv=none; d=zohomail.com; s=zohoarc; b=JXciR8neFO4oVhnwKkunipnyerdmuilGL4gaQzNGeczdFYGFJcX7Hc3X73ae9XBRLlbje+7nPxw5Oo9PNg4PsvM1XnqRN3/1AZMjWnPJY6OgyNhjGEDhwp4yHUrbN9ksNjFWYK0lw7t4c/8fRJcrHT37QgmSZFPcQLDqLM4F4LU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716363; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=i6iaFq54AkEVFDegUjf7FPlmQj7nxOJOOMrN4a0xoYM=; b=XCGduflDW9eAq5VnaW0tawjQO9Vin1n26FJ8aAWpoO45jwA7qhdd5Sr6usOfp+x00LmSYF0GCCOW6fDP8GmnhT3+1F6pSYfpoM6nJPIcEZWCvWbhpJsijpaeaTcCc6Riy3rOiSX+Ml2d5LKZsjsSOLRkCO3VJ6G9iwXy5TkkdHQ= 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+88736+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 1649716363994711.5781619325472; Mon, 11 Apr 2022 15:32:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xQl1YY1788612xjCHC31G0Eq; Mon, 11 Apr 2022 15:32:43 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27681.1649670388892280906 for ; Mon, 11 Apr 2022 02:46:29 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989921" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989921" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044978" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:09 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Guo Dong , Ray Ni , Maurice Ma , Benjamin You , Sean Rhodes Subject: [edk2-devel] [PATCH v1 06/15] UefiPayloadPkg: Add CpuLib to module INFs that depend on UefiCpuLib. Date: Mon, 11 Apr 2022 17:45:46 +0800 Message-Id: <20220411094555.1375-7-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: a6WkB5IC4bCmet1U4P4YvzY9x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716363; bh=kKssiIPJRtXaSCnKR0ASBxMzFk5JFmHiFdTJkzCSvQw=; h=Cc:Date:From:Reply-To:Subject:To; b=edPAwMI6D3nqO4fpRt0+64a9Ko3HEphmjce8cyumcwaVwBIzAGypFLK7lK2ZBGNuach g3VplVEvZVvopdCGHcj8NyZBudaMK7OFaNQPGb2DK3IQPB/iJLnKRvdi3/R8NdUhG7Q16 eHWovw5WHMfIhF8+o8DVv91lp/svd/EoyHk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716364817100041 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Cc: Sean Rhodes Signed-off-by: Yu Pu --- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | 1 + UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf | 1 + UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf | 1 + 3 files changed, 3 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h b/UefiPaylo= adPkg/UefiPayloadEntry/UefiPayloadEntry.h index 56e0a4c639a0..d1c7425b28f2 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf b/UefiPay= loadPkg/UefiPayloadEntry/UefiPayloadEntry.inf index c4e4339ede4b..95446dd99729 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf @@ -54,6 +54,7 @@ HobLib PeCoffLib PlatformSupportLib + CpuLib UefiCpuLib =20 [Guids] diff --git a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf b/Ue= fiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf index 80af5afe0a3f..3b4836042a06 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf +++ b/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf @@ -52,6 +52,7 @@ IoLib HobLib PeCoffLib + CpuLib UefiCpuLib =20 [Guids] --=20 2.30.0.windows.2 -=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 (#88736): https://edk2.groups.io/g/devel/message/88736 Mute This Topic: https://groups.io/mt/90407116/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- From nobody Thu May 16 03:00:32 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+88737+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+88737+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716362; cv=none; d=zohomail.com; s=zohoarc; b=jJlBg+pWiq9ySkWs2kTkb2toujcbyLO6vhva4m3s/+lMn7V2WtpLPoZy+HTAHeBcXri/d/FOka4wmsmclCMx2TmlzSZjeM3fvV4vJUduaJstiCbL0CLv6jFjdxeBgnJf0O+fAK5Cpaok6OfQaUgcq3N6UMTcR+tg72iVPppvoAY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716362; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=uQUmFxBTpLRlXSCgDTIDIeq4yWp6VDWPL6N/a7i+PdE=; b=Jzsnth71vesAZjdD8X9Io3yEDiAL42OksDOhiIxnJI6+E11ACBfutXwUVmeXLvk4aoFgHDKRgoX/efGWlMYi2TwOTyZcE8ONbcp0paJCyNBwYaxhnpcgBhhhmN/SQWOxTl42UFNu2tkK8hLEgn72Urn9iN3PbCQvqMKYRpVGrD4= 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+88737+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 1649716362962937.2470728424303; Mon, 11 Apr 2022 15:32:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 673DYY1788612xnVGlDsmh6J; Mon, 11 Apr 2022 15:32:42 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27681.1649670388892280906 for ; Mon, 11 Apr 2022 02:46:30 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989933" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989933" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507044991" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:12 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v1 07/15] MdePkg: Move API and implementation from UefiCpuLib to CpuLib Date: Mon, 11 Apr 2022 17:45:47 +0800 Message-Id: <20220411094555.1375-8-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: Stn5c6aAg1NSyFBmLULwdzhmx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716362; bh=TNRF4io2Y2gyvCKkJphB5heBoWm7w6a3pPzYBttc9kM=; h=Cc:Date:From:Reply-To:Subject:To; b=rXVgiSGY9KzXRYY3a672PXMBEDU5dP7ZMjbN2s4ZTOEoUmIGnfCyBEQ+i95csNc3nNv 97FU27bpxGt0byo0mS5KYzV4oMQkIHqnG+rdjmKkotF4ir1ZNp5zr7GSAUyXQxcDLWlmF snxSZO3LiH/EKiS1jTw64FPBQbufkGEYH18= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716364856100044 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib. This patch merges UefiCpuPkg/UefiCpuLib to MdePkg/CpuLib. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Yu Pu --- MdePkg/Library/BaseCpuLib/X86BaseCpuLib.c | 75 ++++++++++++++++++++ MdePkg/Include/Library/CpuLib.h | 48 +++++++++++++ MdePkg/Library/BaseCpuLib/BaseCpuLib.inf | 6 ++ MdePkg/Library/BaseCpuLib/Ia32/InitializeFpu.nasm | 68 ++++++++++++++++++ MdePkg/Library/BaseCpuLib/X64/InitializeFpu.nasm | 51 +++++++++++++ 5 files changed, 248 insertions(+) diff --git a/MdePkg/Library/BaseCpuLib/X86BaseCpuLib.c b/MdePkg/Library/Bas= eCpuLib/X86BaseCpuLib.c new file mode 100644 index 000000000000..e69f00417022 --- /dev/null +++ b/MdePkg/Library/BaseCpuLib/X86BaseCpuLib.c @@ -0,0 +1,75 @@ +/** @file + This library defines some routines that are generic for IA32 family CPU. + The library routines are UEFI specification compliant. + Copyright (c) 2020, AMD Inc. All rights reserved.
+ Copyright (c) 2021, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#include +#include + +#include +#include + +/** + Determine if the standard CPU signature is "AuthenticAMD". + @retval TRUE The CPU signature matches. + @retval FALSE The CPU signature does not match. +**/ +BOOLEAN +EFIAPI +StandardSignatureIsAuthenticAMD ( + VOID + ) +{ + UINT32 RegEbx; + UINT32 RegEcx; + UINT32 RegEdx; + + AsmCpuid (CPUID_SIGNATURE, NULL, &RegEbx, &RegEcx, &RegEdx); + return (RegEbx =3D=3D CPUID_SIGNATURE_AUTHENTIC_AMD_EBX && + RegEcx =3D=3D CPUID_SIGNATURE_AUTHENTIC_AMD_ECX && + RegEdx =3D=3D CPUID_SIGNATURE_AUTHENTIC_AMD_EDX); +} + +/** + Return the 32bit CPU family and model value. + @return CPUID[01h].EAX with Processor Type and Stepping ID cleared. +**/ +UINT32 +EFIAPI +GetCpuFamilyModel ( + VOID + ) +{ + CPUID_VERSION_INFO_EAX Eax; + + AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, NULL, NULL, NULL); + + // + // Mask other fields than Family and Model. + // + Eax.Bits.SteppingId =3D 0; + Eax.Bits.ProcessorType =3D 0; + Eax.Bits.Reserved1 =3D 0; + Eax.Bits.Reserved2 =3D 0; + return Eax.Uint32; +} + +/** + Return the CPU stepping ID. + @return CPU stepping ID value in CPUID[01h].EAX. +**/ +UINT8 +EFIAPI +GetCpuSteppingId ( + VOID + ) +{ + CPUID_VERSION_INFO_EAX Eax; + + AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, NULL, NULL, NULL); + + return (UINT8)Eax.Bits.SteppingId; +} diff --git a/MdePkg/Include/Library/CpuLib.h b/MdePkg/Include/Library/CpuLi= b.h index 25f6d9478c52..3f29937dc71b 100644 --- a/MdePkg/Include/Library/CpuLib.h +++ b/MdePkg/Include/Library/CpuLib.h @@ -41,4 +41,52 @@ CpuFlushTlb ( VOID ); =20 +#if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64) + +/** + Initializes floating point units for requirement of UEFI specification. + This function initializes floating-point control word to 0x027F (all exc= eptions + masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word + (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero + for masked underflow). +**/ +VOID +EFIAPI +InitializeFloatingPointUnits ( + VOID + ); + +/** + Determine if the standard CPU signature is "AuthenticAMD". + @retval TRUE The CPU signature matches. + @retval FALSE The CPU signature does not match. +**/ +BOOLEAN +EFIAPI +StandardSignatureIsAuthenticAMD ( + VOID + ); + +/** + Return the 32bit CPU family and model value. + @return CPUID[01h].EAX with Processor Type and Stepping ID cleared. +**/ +UINT32 +EFIAPI +GetCpuFamilyModel ( + VOID + ); + +/** + Return the CPU stepping ID. + @return CPU stepping ID value in CPUID[01h].EAX. +**/ +UINT8 +EFIAPI +GetCpuSteppingId ( + VOID + ); + +#endif + #endif diff --git a/MdePkg/Library/BaseCpuLib/BaseCpuLib.inf b/MdePkg/Library/Base= CpuLib/BaseCpuLib.inf index 950f5229b2a4..7cdbb552c08c 100644 --- a/MdePkg/Library/BaseCpuLib/BaseCpuLib.inf +++ b/MdePkg/Library/BaseCpuLib/BaseCpuLib.inf @@ -28,6 +28,9 @@ # VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 RISCV64 # =20 +[Sources.IA32, Sources.X64] + X86BaseCpuLib.c + [Sources.IA32] Ia32/CpuSleep.c | MSFT Ia32/CpuFlushTlb.c | MSFT @@ -38,10 +41,13 @@ Ia32/CpuSleepGcc.c | GCC Ia32/CpuFlushTlbGcc.c | GCC =20 + Ia32/InitializeFpu.nasm + [Sources.X64] X64/CpuFlushTlb.nasm X64/CpuSleep.nasm =20 + X64/InitializeFpu.nasm =20 [Sources.EBC] Ebc/CpuSleepFlushTlb.c diff --git a/MdePkg/Library/BaseCpuLib/Ia32/InitializeFpu.nasm b/MdePkg/Lib= rary/BaseCpuLib/Ia32/InitializeFpu.nasm new file mode 100644 index 000000000000..5e27cc325012 --- /dev/null +++ b/MdePkg/Library/BaseCpuLib/Ia32/InitializeFpu.nasm @@ -0,0 +1,68 @@ +;-------------------------------------------------------------------------= ----- +;* +;* Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
+;* SPDX-License-Identifier: BSD-2-Clause-Patent +;* +;* +;-------------------------------------------------------------------------= ----- + + SECTION .rodata + +; +; Float control word initial value: +; all exceptions masked, double-precision, round-to-nearest +; +mFpuControlWord: DW 0x27F +; +; Multimedia-extensions control word: +; all exceptions masked, round-to-nearest, flush to zero for masked underf= low +; +mMmxControlWord: DD 0x1F80 + + SECTION .text + +; +; Initializes floating point units for requirement of UEFI specification. +; +; This function initializes floating-point control word to 0x027F (all exc= eptions +; masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word +; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero +; for masked underflow). +; +global ASM_PFX(InitializeFloatingPointUnits) +ASM_PFX(InitializeFloatingPointUnits): + + push ebx + + ; + ; Initialize floating point units + ; + finit + fldcw [mFpuControlWord] + + ; + ; Use CpuId instructuion (CPUID.01H:EDX.SSE[bit 25] =3D 1) to test + ; whether the processor supports SSE instruction. + ; + mov eax, 1 + cpuid + bt edx, 25 + jnc Done + + ; + ; Set OSFXSR bit 9 in CR4 + ; + mov eax, cr4 + or eax, BIT9 + mov cr4, eax + + ; + ; The processor should support SSE instruction and we can use + ; ldmxcsr instruction + ; + ldmxcsr [mMmxControlWord] +Done: + pop ebx + + ret + diff --git a/MdePkg/Library/BaseCpuLib/X64/InitializeFpu.nasm b/MdePkg/Libr= ary/BaseCpuLib/X64/InitializeFpu.nasm new file mode 100644 index 000000000000..8485b4713548 --- /dev/null +++ b/MdePkg/Library/BaseCpuLib/X64/InitializeFpu.nasm @@ -0,0 +1,51 @@ +;-------------------------------------------------------------------------= ----- +;* +;* Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
+;* SPDX-License-Identifier: BSD-2-Clause-Patent +;* +;* +;-------------------------------------------------------------------------= ----- + + SECTION .rodata +; +; Float control word initial value: +; all exceptions masked, double-extended-precision, round-to-nearest +; +mFpuControlWord: DW 0x37F +; +; Multimedia-extensions control word: +; all exceptions masked, round-to-nearest, flush to zero for masked underf= low +; +mMmxControlWord: DD 0x1F80 + +DEFAULT REL +SECTION .text + +; +; Initializes floating point units for requirement of UEFI specification. +; +; This function initializes floating-point control word to 0x027F (all exc= eptions +; masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word +; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero +; for masked underflow). +; +global ASM_PFX(InitializeFloatingPointUnits) +ASM_PFX(InitializeFloatingPointUnits): + + ; + ; Initialize floating point units + ; + finit + fldcw [mFpuControlWord] + + ; + ; Set OSFXSR bit 9 in CR4 + ; + mov rax, cr4 + or rax, BIT9 + mov cr4, rax + + ldmxcsr [mMmxControlWord] + + ret + --=20 2.30.0.windows.2 -=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 (#88737): https://edk2.groups.io/g/devel/message/88737 Mute This Topic: https://groups.io/mt/90407117/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- From nobody Thu May 16 03:00:32 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+88739+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+88739+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716364; cv=none; d=zohomail.com; s=zohoarc; b=EZlLhfnHSM5uFx2kUNIyoNi+QsbmeT7YN/vAIKQAiiFzTlT3t8qqkeu9zfaCx+4lq9IbiMRB2XK0L5IOF3nLCrrBun0KhkoIsmucjbqzJkLRW7elEAzyfFZcEpTtqPR3aGnvH3r7CKCVoUYuBD/dzXtW07jfw9mHG2leLynE92M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716364; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=wEFV3Qlgwss2WsFtga3l6LScGx+JyUlrNcJXfXqN5+8=; b=jGOXUdPAJbHWgpTCtbzgnLcurXD0Izb0/VnIwaryhwiRkahIRNPRi/RqPyaqAXIlenXWPiAatQXh47ltDbDUeduRr6CsWfbGa457W7k+0aZTiDcL1B+zRUUMhXWxgXXHDQJps/HGIZGJ8q80g28gR8UasNFQckwkVMsHWOE0ACg= 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+88739+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 1649716364743395.1574238064236; Mon, 11 Apr 2022 15:32:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xLctYY1788612xmkf1vaa8RQ; Mon, 11 Apr 2022 15:32:44 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27681.1649670388892280906 for ; Mon, 11 Apr 2022 02:46:31 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989937" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989937" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045003" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:14 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-devel] [PATCH v1 08/15] UefiCpuPkg: Move API and implementation from UefiCpuLib to CpuLib Date: Mon, 11 Apr 2022 17:45:48 +0800 Message-Id: <20220411094555.1375-9-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: BA1Yh5AScQqsrSqayD6fYaxRx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716364; bh=ET/uVZv6ZOFX+cBXjtEpvKXfobeLJvenxWvEkB9Ix1Y=; h=Cc:Date:From:Reply-To:Subject:To; b=PYwTZFJECt9s/oCUkOeaf/xluXzJB3U50QRgjKrbaq/VC7stqF+x2k+FPyeROopVMUo Lad6XpifNZ+FbuNKQWsCKWwdcfWXrYrMKuox+BCM4Jy0OmhtaPPdHghIoL1aRhQITO8G8 ijCQgpKBkrQfNOT/bjog9xz78TklBIIMni0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716366898100060 Content-Type: text/plain; charset="utf-8" There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib. This patch merges UefiCpuPkg/UefiCpuLib to MdePkg/CpuLib. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Signed-off-by: Yu Pu --- UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.c | 81 -----------= --------- UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c | 16 ++++ UefiCpuPkg/Include/Library/UefiCpuLib.h | 53 -----------= -- UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf | 8 +- UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm | 68 -----------= ----- UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm | 51 ------------ 6 files changed, 17 insertions(+), 260 deletions(-) diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.c b/UefiCpuPk= g/Library/BaseUefiCpuLib/BaseUefiCpuLib.c deleted file mode 100644 index 5d925bc273f8..000000000000 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.c +++ /dev/null @@ -1,81 +0,0 @@ -/** @file - This library defines some routines that are generic for IA32 family CPU. - - The library routines are UEFI specification compliant. - - Copyright (c) 2020, AMD Inc. All rights reserved.
- Copyright (c) 2021, Intel Corporation. All rights reserved.
- SPDX-License-Identifier: BSD-2-Clause-Patent - -**/ - -#include -#include - -#include -#include - -/** - Determine if the standard CPU signature is "AuthenticAMD". - - @retval TRUE The CPU signature matches. - @retval FALSE The CPU signature does not match. - -**/ -BOOLEAN -EFIAPI -StandardSignatureIsAuthenticAMD ( - VOID - ) -{ - UINT32 RegEbx; - UINT32 RegEcx; - UINT32 RegEdx; - - AsmCpuid (CPUID_SIGNATURE, NULL, &RegEbx, &RegEcx, &RegEdx); - return (RegEbx =3D=3D CPUID_SIGNATURE_AUTHENTIC_AMD_EBX && - RegEcx =3D=3D CPUID_SIGNATURE_AUTHENTIC_AMD_ECX && - RegEdx =3D=3D CPUID_SIGNATURE_AUTHENTIC_AMD_EDX); -} - -/** - Return the 32bit CPU family and model value. - - @return CPUID[01h].EAX with Processor Type and Stepping ID cleared. -**/ -UINT32 -EFIAPI -GetCpuFamilyModel ( - VOID - ) -{ - CPUID_VERSION_INFO_EAX Eax; - - AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, NULL, NULL, NULL); - - // - // Mask other fields than Family and Model. - // - Eax.Bits.SteppingId =3D 0; - Eax.Bits.ProcessorType =3D 0; - Eax.Bits.Reserved1 =3D 0; - Eax.Bits.Reserved2 =3D 0; - return Eax.Uint32; -} - -/** - Return the CPU stepping ID. - @return CPU stepping ID value in CPUID[01h].EAX. -**/ -UINT8 -EFIAPI -GetCpuSteppingId ( - VOID - ) -{ - CPUID_VERSION_INFO_EAX Eax; - - AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, NULL, NULL, NULL); - - return (UINT8)Eax.Bits.SteppingId; -} diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c b/UefiC= puPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c new file mode 100644 index 000000000000..eaecd4ae5ed7 --- /dev/null +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c @@ -0,0 +1,16 @@ +/** @file +This library contains a dummy function to pass build. + +Copyright (c) 2022, Intel Corporation. All rights reserved. + +SPDX-License-Identifier: BSD-2-Clause-Patent +**/ +#include +STATIC +VOID +Dummy ( + VOID + ) +{ + +} diff --git a/UefiCpuPkg/Include/Library/UefiCpuLib.h b/UefiCpuPkg/Include/L= ibrary/UefiCpuLib.h index 0ff4a35774c1..88fc69494c1c 100644 --- a/UefiCpuPkg/Include/Library/UefiCpuLib.h +++ b/UefiCpuPkg/Include/Library/UefiCpuLib.h @@ -1,65 +1,12 @@ /** @file Public header file for UEFI CPU library class. - This library class defines some routines that are generic for IA32 famil= y CPU to be UEFI specification compliant. - Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.
Copyright (c) 2020, AMD Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent - **/ - #ifndef __UEFI_CPU_LIB_H__ #define __UEFI_CPU_LIB_H__ =20 -/** - Initializes floating point units for requirement of UEFI specification. - - This function initializes floating-point control word to 0x027F (all exc= eptions - masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word - (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero - for masked underflow). - -**/ -VOID -EFIAPI -InitializeFloatingPointUnits ( - VOID - ); - -/** - Determine if the standard CPU signature is "AuthenticAMD". - - @retval TRUE The CPU signature matches. - @retval FALSE The CPU signature does not match. - -**/ -BOOLEAN -EFIAPI -StandardSignatureIsAuthenticAMD ( - VOID - ); - -/** - Return the 32bit CPU family and model value. - - @return CPUID[01h].EAX with Processor Type and Stepping ID cleared. -**/ -UINT32 -EFIAPI -GetCpuFamilyModel ( - VOID - ); - -/** - Return the CPU stepping ID. - @return CPU stepping ID value in CPUID[01h].EAX. -**/ -UINT8 -EFIAPI -GetCpuSteppingId ( - VOID - ); - #endif diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf b/UefiCpu= Pkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf index 34d3a7bb4303..9f8b62d87aae 100644 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf @@ -24,14 +24,8 @@ # VALID_ARCHITECTURES =3D IA32 X64 # =20 -[Sources.IA32] - Ia32/InitializeFpu.nasm - -[Sources.X64] - X64/InitializeFpu.nasm - [Sources] - BaseUefiCpuLib.c + BaseUefiCpuLibNull.c =20 [Packages] MdePkg/MdePkg.dec diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm b/Ue= fiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm deleted file mode 100644 index 5e27cc325012..000000000000 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm +++ /dev/null @@ -1,68 +0,0 @@ -;-------------------------------------------------------------------------= ----- -;* -;* Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
-;* SPDX-License-Identifier: BSD-2-Clause-Patent -;* -;* -;-------------------------------------------------------------------------= ----- - - SECTION .rodata - -; -; Float control word initial value: -; all exceptions masked, double-precision, round-to-nearest -; -mFpuControlWord: DW 0x27F -; -; Multimedia-extensions control word: -; all exceptions masked, round-to-nearest, flush to zero for masked underf= low -; -mMmxControlWord: DD 0x1F80 - - SECTION .text - -; -; Initializes floating point units for requirement of UEFI specification. -; -; This function initializes floating-point control word to 0x027F (all exc= eptions -; masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word -; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero -; for masked underflow). -; -global ASM_PFX(InitializeFloatingPointUnits) -ASM_PFX(InitializeFloatingPointUnits): - - push ebx - - ; - ; Initialize floating point units - ; - finit - fldcw [mFpuControlWord] - - ; - ; Use CpuId instructuion (CPUID.01H:EDX.SSE[bit 25] =3D 1) to test - ; whether the processor supports SSE instruction. - ; - mov eax, 1 - cpuid - bt edx, 25 - jnc Done - - ; - ; Set OSFXSR bit 9 in CR4 - ; - mov eax, cr4 - or eax, BIT9 - mov cr4, eax - - ; - ; The processor should support SSE instruction and we can use - ; ldmxcsr instruction - ; - ldmxcsr [mMmxControlWord] -Done: - pop ebx - - ret - diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm b/Uef= iCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm deleted file mode 100644 index 8485b4713548..000000000000 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm +++ /dev/null @@ -1,51 +0,0 @@ -;-------------------------------------------------------------------------= ----- -;* -;* Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
-;* SPDX-License-Identifier: BSD-2-Clause-Patent -;* -;* -;-------------------------------------------------------------------------= ----- - - SECTION .rodata -; -; Float control word initial value: -; all exceptions masked, double-extended-precision, round-to-nearest -; -mFpuControlWord: DW 0x37F -; -; Multimedia-extensions control word: -; all exceptions masked, round-to-nearest, flush to zero for masked underf= low -; -mMmxControlWord: DD 0x1F80 - -DEFAULT REL -SECTION .text - -; -; Initializes floating point units for requirement of UEFI specification. -; -; This function initializes floating-point control word to 0x027F (all exc= eptions -; masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word -; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero -; for masked underflow). -; -global ASM_PFX(InitializeFloatingPointUnits) -ASM_PFX(InitializeFloatingPointUnits): - - ; - ; Initialize floating point units - ; - finit - fldcw [mFpuControlWord] - - ; - ; Set OSFXSR bit 9 in CR4 - ; - mov rax, cr4 - or rax, BIT9 - mov cr4, rax - - ldmxcsr [mMmxControlWord] - - ret - --=20 2.30.0.windows.2 -=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 (#88739): https://edk2.groups.io/g/devel/message/88739 Mute This Topic: https://groups.io/mt/90407119/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- From nobody Thu May 16 03:00:32 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+88738+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+88738+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716363; cv=none; d=zohomail.com; s=zohoarc; b=QysPuiuGJ+1qukrb8vyv2cQ0td3ntS4gGPjS698sCXhPCTpqpxqjpyCpMvDICDea1CtdRW2jqupmfPzA//p5u3pQ81Y6nQYU1OKY9hF47peKRUCXB/NQOFRcEBdfv5Z1E/x/VNh/Em4NmPXSHGnO93JKyXkxWc5sHB8AKvjMLpI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716363; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=WvvKkqdV1VNcq7klKu0k7btLDUXkWzbmss2np6Kl3HA=; b=ciKlCQoAIxKgI0hQxEFgDwlHrkoLDhucaNHRK895BS6uTH1sKZER3k69bbJKpvpXa/zFX8gRe4SJRR4u0eAZf2QbXAqtjcsR+nA9iqvY2+jerBCHu3hIBFyWlKtZhQR8tKVN0cyM2MyRdFkKaOmmBvU8c1ggq8Ov1mjov+FZ2rU= 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+88738+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 1649716363547647.400219859288; Mon, 11 Apr 2022 15:32:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id rx6KYY1788612xtARpVarVyw; Mon, 11 Apr 2022 15:32:43 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.27420.1649670390915753332 for ; Mon, 11 Apr 2022 02:46:31 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989947" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989947" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045012" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:16 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Chasel Chiu , Nate DeSimone , Star Zeng Subject: [edk2-devel] [PATCH v1 09/15] IntelFsp2Pkg: Remove UefiCpuLib from module INFs. Date: Mon, 11 Apr 2022 17:45:49 +0800 Message-Id: <20220411094555.1375-10-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: jBCRnHhG9Mg3OEBYkQnc8CaVx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716363; bh=DuGnRZEitFfWDGfqduh7c9eitjkPDl0aK4uQh5uj7S8=; h=Cc:Date:From:Reply-To:Subject:To; b=OeTIbe/1Ffm3PelM2J0w2/jw0W+Zz7HjM/yJAvTtj6OfIxjaj1mNjcKf2ZH5YlFW7Ni J3etITlAjSA8vxp4E/PjwZAgtHldZRPGRX80IjieNbYoSgB6Gmyj25zPHqqHxUusxmlRA X26gt5WKPlT4VqjUk2KH5iA0F9DYylz+R5A= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716364828100043 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib, remove the dependency of UefiCpuLib. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Yu Pu Reviewed-by: Chasel Chiu --- IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf | 1 - IntelFsp2Pkg/FspSecCore/SecMain.h | 1 - IntelFsp2Pkg/IntelFsp2Pkg.dsc | 1 - IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc | 1 - IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf | 1 - IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf | 1 - IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc | 1 - 7 files changed, 7 deletions(-) diff --git a/IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf b/IntelFsp2Pkg/FspSecC= ore/FspSecCoreM.inf index 830471adcf2f..c07b49c4045f 100644 --- a/IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf +++ b/IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf @@ -52,7 +52,6 @@ FspCommonLib FspSecPlatformLib CpuLib - UefiCpuLib =20 [Pcd] gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamBase ## CONSUMES diff --git a/IntelFsp2Pkg/FspSecCore/SecMain.h b/IntelFsp2Pkg/FspSecCore/Se= cMain.h index edb7447d9eff..7288086cc493 100644 --- a/IntelFsp2Pkg/FspSecCore/SecMain.h +++ b/IntelFsp2Pkg/FspSecCore/SecMain.h @@ -21,7 +21,6 @@ #include #include #include -#include #include =20 typedef VOID (*PEI_CORE_ENTRY) ( \ diff --git a/IntelFsp2Pkg/IntelFsp2Pkg.dsc b/IntelFsp2Pkg/IntelFsp2Pkg.dsc index c1414f7e75b8..b90be5397d37 100644 --- a/IntelFsp2Pkg/IntelFsp2Pkg.dsc +++ b/IntelFsp2Pkg/IntelFsp2Pkg.dsc @@ -27,7 +27,6 @@ PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompres= sLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf =20 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseRepor= tStatusCodeLibNull.inf PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibN= ull.inf diff --git a/IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc b/IntelFsp2Pkg/Tools/T= ests/QemuFspPkg.dsc index 961576c9a73a..31558121185d 100644 --- a/IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc +++ b/IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc @@ -107,7 +107,6 @@ PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatfor= mHookLibNull.inf PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibN= ull.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHo= okStatusCodeLibNull.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf !if $(TARGET) =3D=3D DEBUG DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPort= Lib16550.inf diff --git a/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf b/Inte= lFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf index e2262d693c55..77af97207990 100644 --- a/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf +++ b/IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf @@ -38,7 +38,6 @@ FspWrapperPlatformLib FspWrapperHobProcessLib CpuLib - UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib PerformanceLib diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf b/Inte= lFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf index 0598f85ab3ac..cad9fad96829 100644 --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf @@ -39,7 +39,6 @@ FspWrapperPlatformLib FspWrapperHobProcessLib CpuLib - UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib PerformanceLib diff --git a/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc b/IntelFsp2Wrapper= Pkg/IntelFsp2WrapperPkg.dsc index 21e089000eaf..233cb3d9ce2b 100644 --- a/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc +++ b/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc @@ -41,7 +41,6 @@ DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.i= nf =20 # UefiCpuPkg - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf =20 # FSP Wrapper Lib --=20 2.30.0.windows.2 -=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 (#88738): https://edk2.groups.io/g/devel/message/88738 Mute This Topic: https://groups.io/mt/90407118/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- From nobody Thu May 16 03:00:32 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+88740+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+88740+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716365; cv=none; d=zohomail.com; s=zohoarc; b=MjbhumwZswB7gIuVCSpvmsK5EvWkk8WGaZ7KMkn9N74ukBsanWzTsz7rccGdlB+m97fvcLaIK9Sxma8EVKRvO3+gh2p4TiQDv/82YBcWja5Kayj2HijSIQhbAVWPXvlD3ruE95y4zXjBLmRB/npi3zx65aQtgVK395wVIEiuYfk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716365; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=kHGZS/9zkWj3h5d2PGCYPoPvPNMXDfLyfhFZmd//n80=; b=LnVhHZhMZKKkz1EGpQQ+L6HSQgibpgcTINyt3TXyY5r/uCiKpwAtuJ0XVC8fw0ih4pbK/3x2/a0iFQVC21FBmbP7cAS8vx0BpwIOePObRIjeQmjfvz+xHDs8UsQo0agi0jpK4EbU55Sa0kD5JUMnPci8VxA7QZbun5DtmKdaNec= 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+88740+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 1649716365466967.76373312688; Mon, 11 Apr 2022 15:32:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 9ukIYY1788612xApjtUtkGeD; Mon, 11 Apr 2022 15:32:44 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.27420.1649670390915753332 for ; Mon, 11 Apr 2022 02:46:31 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989957" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989957" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045027" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:18 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann Subject: [edk2-devel] [PATCH v1 10/15] OvmfPkg: Remove UefiCpuLib from module INFs. Date: Mon, 11 Apr 2022 17:45:50 +0800 Message-Id: <20220411094555.1375-11-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: 3qrAg3fMQrgiAyWFl9QQpQ15x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716364; bh=xKp63VMTnPTH+inMxXYexe7HNI5ZJvJtZOlUwJFAulg=; h=Cc:Date:From:Reply-To:Subject:To; b=v8t6cPHzF0uR+2qA0/sUfBUWLSkZeiYZrZSIGaZ3ZJ9A9GgAK9nxBF8MEziRpfb8EqI 85RpluovYBRsEI+oBE0kLJarf99d8dB4QoDEIEER+syWMkZdMgs7PuOiqjC2tQse9cbYO yUSGCrTfIyTrabmwQdOYwIWivygXZbCCzAE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716366902100061 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib, remove the dependency of UefiCpuLib. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Yu Pu --- OvmfPkg/Sec/SecMain.c | 1 - OvmfPkg/AmdSev/AmdSevX64.dsc | 1 - OvmfPkg/Bhyve/BhyveX64.dsc | 1 - OvmfPkg/CloudHv/CloudHvX64.dsc | 1 - OvmfPkg/Microvm/MicrovmX64.dsc | 1 - OvmfPkg/OvmfPkgIa32.dsc | 1 - OvmfPkg/OvmfPkgIa32X64.dsc | 1 - OvmfPkg/OvmfPkgX64.dsc | 1 - OvmfPkg/OvmfXen.dsc | 1 - OvmfPkg/Sec/SecMain.inf | 1 - 10 files changed, 10 deletions(-) diff --git a/OvmfPkg/Sec/SecMain.c b/OvmfPkg/Sec/SecMain.c index 2c9e439800c7..012ba0ede88a 100644 --- a/OvmfPkg/Sec/SecMain.c +++ b/OvmfPkg/Sec/SecMain.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/OvmfPkg/AmdSev/AmdSevX64.dsc b/OvmfPkg/AmdSev/AmdSevX64.dsc index fd56176796d5..6a8dd3c1204a 100644 --- a/OvmfPkg/AmdSev/AmdSevX64.dsc +++ b/OvmfPkg/AmdSev/AmdSevX64.dsc @@ -161,7 +161,6 @@ UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiA= pplicationEntryPoint.inf DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/Bhyve/BhyveX64.dsc b/OvmfPkg/Bhyve/BhyveX64.dsc index 5fa08bebd73c..567a44290258 100644 --- a/OvmfPkg/Bhyve/BhyveX64.dsc +++ b/OvmfPkg/Bhyve/BhyveX64.dsc @@ -159,7 +159,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/CloudHv/CloudHvX64.dsc b/OvmfPkg/CloudHv/CloudHvX64.dsc index b4d855d80f56..a543bea6f8cb 100644 --- a/OvmfPkg/CloudHv/CloudHvX64.dsc +++ b/OvmfPkg/CloudHv/CloudHvX64.dsc @@ -171,7 +171,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf diff --git a/OvmfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.dsc index 1ea43443ae97..65a8c5698284 100644 --- a/OvmfPkg/Microvm/MicrovmX64.dsc +++ b/OvmfPkg/Microvm/MicrovmX64.dsc @@ -169,7 +169,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 85abed24c1a7..8210eb447d5e 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -167,7 +167,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index a9c1daecc1a8..806ae6696631 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -171,7 +171,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 718399299f57..fafa8eea567d 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -171,7 +171,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index efa97f09f32b..f62e8ab552e3 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -160,7 +160,6 @@ DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeS= ecurityManagementLib.inf UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVar= iablesLib.inf diff --git a/OvmfPkg/Sec/SecMain.inf b/OvmfPkg/Sec/SecMain.inf index 6ad366a89333..c0cad1c2aed3 100644 --- a/OvmfPkg/Sec/SecMain.inf +++ b/OvmfPkg/Sec/SecMain.inf @@ -45,7 +45,6 @@ PeiServicesLib PcdLib CpuLib - UefiCpuLib DebugAgentLib IoLib PeCoffLib --=20 2.30.0.windows.2 -=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 (#88740): https://edk2.groups.io/g/devel/message/88740 Mute This Topic: https://groups.io/mt/90407120/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- From nobody Thu May 16 03:00:32 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+88741+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+88741+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716365; cv=none; d=zohomail.com; s=zohoarc; b=YpsnmF+2P/2aiUUF1746Xyn8JHP6boGKlZzWSWfqoeYegrcreE3PGJv7ffW4VAy+bwvrZ1MfSCEhU50qZPVbm0xTLWkU7mghJJpBo99AU4DBW/VANvV3qmKxCBGWdi8IouflW3ztjl1Tie/OnJPMGnRAveANahPvnOJEgbVa5WM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716365; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=dxF3vNQROp+lDAZaSm3tVtWFOTCPN+NMWwXv/MiSlZg=; b=ZQfBr7VDclH1jnFoMkd6EvOpZSClt3hmBPMmHR5RgsSb3iHjsUmG8GW6BJvkvS7+q8eEQus6pfa6C9pcSNy2Oq3UTclGKBgmPSnC2Mihkr+TCA/SURTGaGsfqKLaDBPEN98XqeEZ0/OpfRgqs/jki3vkN4HTBHgcpTKi8AIZbjo= 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+88741+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 1649716365928102.16187016353138; Mon, 11 Apr 2022 15:32:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Sf3XYY1788612xAE7JYYUQDF; Mon, 11 Apr 2022 15:32:45 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.27681.1649670388892280906 for ; Mon, 11 Apr 2022 02:46:31 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989962" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989962" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045042" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:20 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Ray Ni Subject: [edk2-devel] [PATCH v1 11/15] PcAtChipsetPkg: Remove UefiCpuLib from module INFs. Date: Mon, 11 Apr 2022 17:45:51 +0800 Message-Id: <20220411094555.1375-12-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: 5aiW8JUiV3tJX5JyUgXCNUkzx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716365; bh=sLd1ulQ3/BoKB2NDC34nutk/oOuEVhuvF8c/NBqmZss=; h=Cc:Date:From:Reply-To:Subject:To; b=tjjJFo0Okd8cQbtCL8M6lv8UUXtaoLFINVER09uFV5oxQpYfLM0vg8TYKmx1d4Zhy4p 7qIQVaL1DF7hvNZSndi31zD0HFgPqvFUlrRzZ/CjTG+rp97Ks/VCPRY3U3zIOFqEhnhLg iVwzFSajMrwNQfSADT2zb1bZ2B7AlJXZzko= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716366857100058 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib, remove the dependency of UefiCpuLib. Cc: Ray Ni Signed-off-by: Yu Pu --- PcAtChipsetPkg/PcAtChipsetPkg.dsc | 1 - 1 file changed, 1 deletion(-) diff --git a/PcAtChipsetPkg/PcAtChipsetPkg.dsc b/PcAtChipsetPkg/PcAtChipset= Pkg.dsc index 451e60ddc857..2f02ecf6fd11 100644 --- a/PcAtChipsetPkg/PcAtChipsetPkg.dsc +++ b/PcAtChipsetPkg/PcAtChipsetPkg.dsc @@ -42,7 +42,6 @@ ResetSystemLib|PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.inf IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseRepor= tStatusCodeLibNull.inf HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf =20 --=20 2.30.0.windows.2 -=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 (#88741): https://edk2.groups.io/g/devel/message/88741 Mute This Topic: https://groups.io/mt/90407121/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- From nobody Thu May 16 03:00:32 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+88742+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+88742+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716366; cv=none; d=zohomail.com; s=zohoarc; b=HRJGn/3yugN2xe/ij6U2AxtPcZprtzCVizo5U0kp3MJIi4Y3MGVUgsyXhlf/VRlBY20LMxQXVlJPIAf+HXARVOE4l0IItW7Kl8EyYL3VRQEGE5Ug2Otm/H43LKFHK8jP1Hod6ohRpZIUbxZWNDJQKGmR1RUj9NkaKAGuEj+FuPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716366; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=4RBWSTOE3NUJZBtHwX4aPCMvANjI7nU9/IoCw2nd7yM=; b=KXlNV1S+dhfn58b8gdmGF3iM/23alEPuZ930SpxYuzQJLv33KSV1eodXCaqlNmjOH8ScXfUPh4ECqqsK5p9Z8OIC1tbouqFthblAF8vARcxF3BlD0+pPjQJeZaX4/eojQHu4Zg9lGejT9aWaKJTjWJU2tVVX6EA3Xswki1GhHik= 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+88742+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 1649716366009299.3102655963884; Mon, 11 Apr 2022 15:32:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id zQLzYY1788612x87Z1W1iUvv; Mon, 11 Apr 2022 15:32:45 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.27420.1649670390915753332 for ; Mon, 11 Apr 2022 02:46:32 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989968" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989968" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045066" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:21 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Hao A Wu Subject: [edk2-devel] [PATCH v1 12/15] SourceLevelDebugPkg: Remove UefiCpuLib from module INFs. Date: Mon, 11 Apr 2022 17:45:52 +0800 Message-Id: <20220411094555.1375-13-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: q1E8lVAEFm2dv3mAuJDxGApqx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716365; bh=mhgGNZs71FipSbFL5rEJJkS9SJ6UJjr6SYLKBnDa6i8=; h=Cc:Date:From:Reply-To:Subject:To; b=RQjaUDg+kwoC9NqWVD83imnqQp0ZbZeJmFn+fCC1dhZYQBBPbqnHflpaQPWhBhJnoNf IIrcdnIkfXmgCjfGZL0pHbO6Xkl04pdseQpAkiH02OS7wyU2Ynz90GEQphzOla4ufOreZ Twf0p5IbnOjF0VVmhLVV9GLxo829WiiPuM8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716366864100059 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib, remove the dependency of UefiCpuLib. Cc: Hao A Wu Signed-off-by: Yu Pu --- SourceLevelDebugPkg/SourceLevelDebugPkg.dsc | 1 - 1 file changed, 1 deletion(-) diff --git a/SourceLevelDebugPkg/SourceLevelDebugPkg.dsc b/SourceLevelDebug= Pkg/SourceLevelDebugPkg.dsc index eba64a7b7877..986dd5a769d3 100644 --- a/SourceLevelDebugPkg/SourceLevelDebugPkg.dsc +++ b/SourceLevelDebugPkg/SourceLevelDebugPkg.dsc @@ -35,7 +35,6 @@ IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchroniza= tionLib.inf LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeC= offGetEntryPointLib.inf SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPort= Lib16550.inf PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDeb= ug/PeCoffExtraActionLibDebug.inf --=20 2.30.0.windows.2 -=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 (#88742): https://edk2.groups.io/g/devel/message/88742 Mute This Topic: https://groups.io/mt/90407122/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- From nobody Thu May 16 03:00:32 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+88743+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+88743+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716366; cv=none; d=zohomail.com; s=zohoarc; b=dvskFMKUWpN7+9seKXaE2U0O6GFhnwPnOySEpibZ/t5g9pRE2fqqYHCG3QNEb155Ly7I+EFEoPDOpXouF2JRsql6p7WjyfOJsaW8MGA0OXTY6//p7Bsdu+TP5dUV427rI84XUB7CfITambeqg/W62l2gRvsfX3dfUX06IsBwJfM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716366; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=fURPL8emeMfKyNVFzaGWUDwjVTcEIpvyLRCblk0oLUk=; b=itqUwG7de7YDfvUOkd8BPpBxrvSd3oRjMBl9N2CpTggR7FIAE95A/4/nYT6QjwyU9Abd/EUJlQndgVnAPv+oq/z5k9dalu6aRlSNkiyVHyaX7L7/cZsAhq7bqdrWGd2TEjj/w83ccOvJGKDvWWD/D/bnghmChq99BiNk70x5uI8= 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+88743+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 1649716366491385.5093750791219; Mon, 11 Apr 2022 15:32:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id F1Q9YY1788612xlYHjkJmMjB; Mon, 11 Apr 2022 15:32:46 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.27221.1649670392747644092 for ; Mon, 11 Apr 2022 02:46:32 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989983" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989983" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045076" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:23 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-devel] [PATCH v1 13/15] UefiCpuPkg: Remove UefiCpuLib from module INFs. Date: Mon, 11 Apr 2022 17:45:53 +0800 Message-Id: <20220411094555.1375-14-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: ythQlt0bCgAgLWmpDuWGtrcbx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716366; bh=zo7USqjm/Z0PvmoG7RsUm1JirxIf+ac5o/D5V0KbBhA=; h=Cc:Date:From:Reply-To:Subject:To; b=CfXmMvNoxoBXLHxHH4rTJpPEqvdSXUXCCZWNRk6HThin3XIcK4OCLPOq8jRBpS4b7y3 btdUcmOzMItQP+BtsX1n4tdZ4PTkadeLF/R7BUnlH9E6uePIgIgPocl+s7e31E7MifIVw iyI6NqR+kmFPxQA7T6nFxBk8xK/NlZyGX4o= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716366850100057 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib, remove the dependency of UefiCpuLib. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Signed-off-by: Yu Pu --- UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 1 - UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 1 - UefiCpuPkg/CpuDxe/CpuDxe.h | 1 - UefiCpuPkg/CpuDxe/CpuDxe.inf | 1 - UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf | 1 - UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf | 1 - UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 1 - UefiCpuPkg/Library/MpInitLib/MpLib.h | 1 - UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf | 1 - UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 1 - UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | 1 - UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h | 1 - UefiCpuPkg/SecCore/SecCore.inf | 1 - UefiCpuPkg/SecCore/SecCoreNative.inf | 1 - UefiCpuPkg/SecCore/SecMain.h | 1 - 15 files changed, 15 deletions(-) diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c b/UefiCpuPkg/Li= brary/BaseXApicLib/BaseXApicLib.c index a944c3d01cf7..008b8a070bf9 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c @@ -22,7 +22,6 @@ #include #include #include -#include =20 // // Library internal functions diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c b/U= efiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c index 8b3630d7a302..f00c9bf4c05f 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c @@ -23,7 +23,6 @@ #include #include #include -#include =20 // // Library internal functions diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.h b/UefiCpuPkg/CpuDxe/CpuDxe.h index 2208671cb932..49a390b4c404 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.h +++ b/UefiCpuPkg/CpuDxe/CpuDxe.h @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.inf b/UefiCpuPkg/CpuDxe/CpuDxe.inf index d87fe503d152..c14ee3f2784a 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.inf +++ b/UefiCpuPkg/CpuDxe/CpuDxe.inf @@ -33,7 +33,6 @@ UefiBootServicesTableLib UefiDriverEntryPoint LocalApicLib - UefiCpuLib UefiLib CpuExceptionHandlerLib HobLib diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf b/UefiCpuPkg/= Library/BaseXApicLib/BaseXApicLib.inf index a85b69e0a11c..8c4eb655481d 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf @@ -39,7 +39,6 @@ IoLib PcdLib CpuLib - UefiCpuLib =20 [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuInitIpiDelayInMicroSeconds ## SOMETIMES= _CONSUMES diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf b= /UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf index 31ebdd39c616..713f1859c2e7 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf @@ -39,7 +39,6 @@ IoLib PcdLib CpuLib - UefiCpuLib =20 [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdCpuInitIpiDelayInMicroSeconds ## SOMETIMES= _CONSUMES diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf b/UefiCpuPkg/Lib= rary/MpInitLib/DxeMpInitLib.inf index e1cd0b350008..7450d9c729c9 100644 --- a/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf +++ b/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf @@ -49,7 +49,6 @@ HobLib MtrrLib CpuLib - UefiCpuLib UefiBootServicesTableLib DebugAgentLib SynchronizationLib diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpIn= itLib/MpLib.h index f8c52426dd5f..693211ae3508 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf b/UefiCpuPkg/Lib= rary/MpInitLib/PeiMpInitLib.inf index 5facf4db9499..98864c648438 100644 --- a/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf +++ b/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf @@ -49,7 +49,6 @@ HobLib MtrrLib CpuLib - UefiCpuLib SynchronizationLib PeiServicesLib PcdLib diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h b/UefiCpuPkg/PiSmmC= puDxeSmm/PiSmmCpuDxeSmm.h index dfeceec2aadc..d3a6e1702fdd 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h @@ -44,7 +44,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #include -#include #include #include #include diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf b/UefiCpuPkg/PiSm= mCpuDxeSmm/PiSmmCpuDxeSmm.inf index deef00f9c6e9..fdd89da2239c 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf @@ -89,7 +89,6 @@ HobLib PciLib LocalApicLib - UefiCpuLib SmmCpuPlatformHookLib CpuExceptionHandlerLib UefiLib diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h b/UefiCpuPkg/Pi= SmmCpuDxeSmm/SmmProfileInternal.h index 0e60509e20a8..964dd5281780 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h @@ -14,7 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #include -#include #include =20 #include "SmmProfileArch.h" diff --git a/UefiCpuPkg/SecCore/SecCore.inf b/UefiCpuPkg/SecCore/SecCore.inf index f021997f271c..3758aded3b49 100644 --- a/UefiCpuPkg/SecCore/SecCore.inf +++ b/UefiCpuPkg/SecCore/SecCore.inf @@ -48,7 +48,6 @@ PcdLib DebugAgentLib CpuLib - UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib CpuExceptionHandlerLib diff --git a/UefiCpuPkg/SecCore/SecCoreNative.inf b/UefiCpuPkg/SecCore/SecC= oreNative.inf index e0a1b44a7e23..1ee6ff7d8817 100644 --- a/UefiCpuPkg/SecCore/SecCoreNative.inf +++ b/UefiCpuPkg/SecCore/SecCoreNative.inf @@ -45,7 +45,6 @@ PcdLib DebugAgentLib CpuLib - UefiCpuLib PeCoffGetEntryPointLib PeCoffExtraActionLib CpuExceptionHandlerLib diff --git a/UefiCpuPkg/SecCore/SecMain.h b/UefiCpuPkg/SecCore/SecMain.h index 189fcf932625..b25f5d0f5e1b 100644 --- a/UefiCpuPkg/SecCore/SecMain.h +++ b/UefiCpuPkg/SecCore/SecMain.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include --=20 2.30.0.windows.2 -=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 (#88743): https://edk2.groups.io/g/devel/message/88743 Mute This Topic: https://groups.io/mt/90407123/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- From nobody Thu May 16 03:00:32 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+88744+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+88744+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716366; cv=none; d=zohomail.com; s=zohoarc; b=beEpEaOzu0mo0JwSPdZSslNfwN8ON86KBiZw3MUU5a17lOzK0tttKv/VnfLXkCZ1sTQUZ+M/2JhkBDPXgj/JHPoDnkASaLtJXchVgkLHDDr9wNF95pKs68CZ6GFn0j6coqfA8Hx2+1m9A0A7reGSm5VLt7VzCWuH8iWi8cMc3Uk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716366; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=H6DJ6h3e6lh8zdMlVig+MBaug/cjzKNm3E/B+WgpWtY=; b=TsDptqa+PSieBwF0yIwWDnuhqBQPT2pq+kb84O183SbG27njoskD7q6TyPSOFTikBw5xbEDl98tbkC3BJ9u25tcC7Gx251yl5khLfDHmmrmVxgfv+X9kg5zA8Riuz0ZOm/t0A0tSIZkVnRKSNFFIIQnR4NOYVeSdtRUP2RhbIKY= 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+88744+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 1649716366739920.6864482402009; Mon, 11 Apr 2022 15:32:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ZoApYY1788612xZWAIwhTRd7; Mon, 11 Apr 2022 15:32:46 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.27221.1649670392747644092 for ; Mon, 11 Apr 2022 02:46:33 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324989991" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324989991" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045087" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:25 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Guo Dong , Ray Ni , Maurice Ma , Benjamin You , Sean Rhodes Subject: [edk2-devel] [PATCH v1 14/15] UefiPayloadPkg: Remove UefiCpuLib from module INFs. Date: Mon, 11 Apr 2022 17:45:54 +0800 Message-Id: <20220411094555.1375-15-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: HTsBNgkqLHYK9yooeOmb498ax1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716366; bh=s1PQFQxTMDet1uLZgnTzQ2qMPqmZmy5Suwp4EtraWR4=; h=Cc:Date:From:Reply-To:Subject:To; b=G+ASN7zetEK++2h1C9zAVEb5Law7nQyJpdfFX6bnoWD1JSgEwjjmn9qffyMrVMI0DuD 9iGf8aprvPsjdBTm60KI02JrwieogxKGQX4tqOgXcN+2gsopm3CqPcQcXawbtfLA7Q6qu 9aCQFJwFSyy/2vpUEPhOIsZjhx6u+/2mF3c= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716368837100077 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib, remove the dependency of UefiCpuLib. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Cc: Sean Rhodes Signed-off-by: Yu Pu --- UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | 1 - UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf | 1 - UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf | 1 - UefiPayloadPkg/UefiPayloadPkg.dsc | 1 - 4 files changed, 4 deletions(-) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h b/UefiPaylo= adPkg/UefiPayloadEntry/UefiPayloadEntry.h index d1c7425b28f2..ad8a9fd22b66 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf b/UefiPay= loadPkg/UefiPayloadEntry/UefiPayloadEntry.inf index 95446dd99729..d47e8e76cf4c 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf @@ -55,7 +55,6 @@ PeCoffLib PlatformSupportLib CpuLib - UefiCpuLib =20 [Guids] gEfiMemoryTypeInformationGuid diff --git a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf b/Ue= fiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf index 3b4836042a06..c4f4f28eaa86 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf +++ b/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf @@ -53,7 +53,6 @@ HobLib PeCoffLib CpuLib - UefiCpuLib =20 [Guids] gEfiMemoryTypeInformationGuid diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 14a8d157a292..d0527e6e5bce 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -200,7 +200,6 @@ UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompres= sLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableL= ib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf =20 # --=20 2.30.0.windows.2 -=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 (#88744): https://edk2.groups.io/g/devel/message/88744 Mute This Topic: https://groups.io/mt/90407124/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- From nobody Thu May 16 03:00:32 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+88745+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+88745+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1649716367; cv=none; d=zohomail.com; s=zohoarc; b=AcYJGpAdjE17koYRKxSEG6ZR4DnAtDla3trhKWECRDvYvfQQTJsZgQ4zVT1m/mlL5i+bDppr8PUg2yRVFV9s9c0vmUvRNex89Yk1iGyBB4xh2GeLSke0ce+PPNf3CQVuhe1G/BG++OYGg8i3aqiVAOLy55yP6Gh/M9zit34akAo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649716367; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=qZydob+An5gevFygwvu17EywMLzgJSU8hLBGvzy/lmM=; b=f3uwTOotd+hhHIs5tXe4BCkFDNaR6RXE5RAl4BOQcjzgtRjB8RzgH1vwJ6r1PMcAFa2EsZseeqZZngoKcvyeLS8LAovKr9ELuZgo1atgUKsAfCQOnfh8HryVOCTwRdIQ+gnbQp05EEAFK1gnZ63w3Yp7b58et5PtW2K2rQ7sH08= 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+88745+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 1649716367207135.40963398292251; Mon, 11 Apr 2022 15:32:47 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id tFVpYY1788612xvwn7QHjNuT; Mon, 11 Apr 2022 15:32:46 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.27221.1649670392747644092 for ; Mon, 11 Apr 2022 02:46:33 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324990002" X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="324990002" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2022 02:46:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,251,1643702400"; d="scan'208";a="507045122" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2022 02:46:28 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-devel] [PATCH v1 15/15] UefiCpuLib: Remove UefiCpuLib. Date: Mon, 11 Apr 2022 17:45:55 +0800 Message-Id: <20220411094555.1375-16-yu.pu@intel.com> In-Reply-To: <20220411094555.1375-1-yu.pu@intel.com> References: <20220411094555.1375-1-yu.pu@intel.com> 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,yu.pu@intel.com X-Gm-Message-State: DqliJ4cwELK5KckqfKeTVObux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649716366; bh=i+l8zpTFUKoO6WK/FqJNcXpSOc+F3/hgRPak1AF5zSQ=; h=Cc:Date:From:Reply-To:Subject:To; b=TaQfm1S5KBaID4E1NUTIKwuI8TbV84L/LnlqpmVqPBc2mZ6Qdo4PbZKnvHOtCsvYzUQ Iwfyx3ULjto201LnKgka8Q/TrrKg5rdDUV8aqMNhiobFVMs//e9kfFcTMn0wK/HOpB+e+ JSVnnjJR/N2oDvdm270bKkm20VQ5llJv2E0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649716368883100078 Content-Type: text/plain; charset="utf-8" Because UefiCpuPkg/UefiCpuLib is merged to MdePkg/CpuLib and all modules are updated to not depend on this library, remove it completely. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Signed-off-by: Yu Pu --- UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c | 16 --------- UefiCpuPkg/Include/Library/UefiCpuLib.h | 12 ------- UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf | 35 --------------= ------ UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.uni | 16 --------- UefiCpuPkg/UefiCpuPkg.dec | 5 --- UefiCpuPkg/UefiCpuPkg.dsc | 2 -- 6 files changed, 86 deletions(-) diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c b/UefiC= puPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c deleted file mode 100644 index eaecd4ae5ed7..000000000000 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c +++ /dev/null @@ -1,16 +0,0 @@ -/** @file -This library contains a dummy function to pass build. - -Copyright (c) 2022, Intel Corporation. All rights reserved. - -SPDX-License-Identifier: BSD-2-Clause-Patent -**/ -#include -STATIC -VOID -Dummy ( - VOID - ) -{ - -} diff --git a/UefiCpuPkg/Include/Library/UefiCpuLib.h b/UefiCpuPkg/Include/L= ibrary/UefiCpuLib.h deleted file mode 100644 index 88fc69494c1c..000000000000 --- a/UefiCpuPkg/Include/Library/UefiCpuLib.h +++ /dev/null @@ -1,12 +0,0 @@ -/** @file - Public header file for UEFI CPU library class. - This library class defines some routines that are generic for IA32 famil= y CPU - to be UEFI specification compliant. - Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.
- Copyright (c) 2020, AMD Inc. All rights reserved.
- SPDX-License-Identifier: BSD-2-Clause-Patent -**/ -#ifndef __UEFI_CPU_LIB_H__ -#define __UEFI_CPU_LIB_H__ - -#endif diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf b/UefiCpu= Pkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf deleted file mode 100644 index 9f8b62d87aae..000000000000 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf +++ /dev/null @@ -1,35 +0,0 @@ -## @file -# This library defines some routines that are generic for IA32 family CPU. -# -# The library routines are UEFI specification compliant. -# -# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
-# Copyright (c) 2020, AMD Inc. All rights reserved.
-# SPDX-License-Identifier: BSD-2-Clause-Patent -# -## - -[Defines] - INF_VERSION =3D 0x00010005 - BASE_NAME =3D BaseUefiCpuLib - MODULE_UNI_FILE =3D BaseUefiCpuLib.uni - FILE_GUID =3D 34C24FD7-7A90-45c2-89FD-946473D9CE98 - MODULE_TYPE =3D BASE - VERSION_STRING =3D 1.0 - LIBRARY_CLASS =3D UefiCpuLib - -# -# The following information is for reference only and not required by the = build tools. -# -# VALID_ARCHITECTURES =3D IA32 X64 -# - -[Sources] - BaseUefiCpuLibNull.c - -[Packages] - MdePkg/MdePkg.dec - UefiCpuPkg/UefiCpuPkg.dec - -[LibraryClasses] - BaseLib diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.uni b/UefiCpu= Pkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.uni deleted file mode 100644 index 83c96cea67ce..000000000000 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.uni +++ /dev/null @@ -1,16 +0,0 @@ -// /** @file -// This library defines some routines that are generic for IA32 family CPU. -// -// The library routines are UEFI specification compliant. -// -// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
-// -// SPDX-License-Identifier: BSD-2-Clause-Patent -// -// **/ - - -#string STR_MODULE_ABSTRACT #language en-US "Defines generic r= outines for IA32 family CPUs." - -#string STR_MODULE_DESCRIPTION #language en-US "The library routi= nes comply with the UEFI Specification." - diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 525cde463435..e40d78348f75 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -18,11 +18,6 @@ Include =20 [LibraryClasses] - ## @libraryclass Defines some routines that are generic for IA32 famil= y CPU - ## to be UEFI specification compliant. - ## - UefiCpuLib|Include/Library/UefiCpuLib.h - ## @libraryclass Defines some routines that are used to register/manag= e/program ## CPU features. ## diff --git a/UefiCpuPkg/UefiCpuPkg.dsc b/UefiCpuPkg/UefiCpuPkg.dsc index a0bbde9985d3..985a271f18cf 100644 --- a/UefiCpuPkg/UefiCpuPkg.dsc +++ b/UefiCpuPkg/UefiCpuPkg.dsc @@ -31,7 +31,6 @@ SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull= .inf DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseD= ebugPrintErrorLevelLib.inf DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf - UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf @@ -136,7 +135,6 @@ UefiCpuPkg/CpuIo2Smm/CpuIo2StandaloneMm.inf UefiCpuPkg/CpuMpPei/CpuMpPei.inf UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf - UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf --=20 2.30.0.windows.2 -=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 (#88745): https://edk2.groups.io/g/devel/message/88745 Mute This Topic: https://groups.io/mt/90407125/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-