From nobody Tue Oct 22 22:19:40 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+103475+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+103475+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1682331992; cv=none; d=zohomail.com; s=zohoarc; b=LWGcW759xIZeDe/l+tYbYFP9gEbdiBewhgGga/q4ZX4bAkIuzzwrXwDiZWkq347vyf8u590OhHOLHUQVQS4H3DAlmNAJQzQVvG9Tl0yFUicBZ+6QRlrAaqKoCG+kinPLx8Gd3bVvZ8ywkDC8Cyo2oAKkqP2LfoGyzk1llgq7geU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682331992; 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=dxpHA4KBTubOR1BmoDXQi0h+dua0Y4G7uIRt0U5+0Ic=; b=Nw4BnatC0zMhJsV0LI+8FEgak0jbMHSBSXwYbTu7O392tZOqKny4fPg8Kz545v9pUTfIOfZEh3sp0TqXr/QgMHfrdWOY8cIeOAP8rgNLcHIsDmJBReGQiOCWxgEaEyRbw9m+vwubjWSQxwo2xMDTwT+LtJUNd0VhdEZemGDhcoc= 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+103475+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 168233199263556.69499405911449; Mon, 24 Apr 2023 03:26:32 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 7yeiYY1788612xQqUNhG3Peh; Mon, 24 Apr 2023 03:26:32 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.47771.1682331987150222378 for ; Mon, 24 Apr 2023 03:26:31 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="411690397" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="411690397" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 03:26:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="1022654928" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="1022654928" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 03:26:27 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Ray Ni Subject: [edk2-devel] [Patch V4 1/8] MdePkg: Move CpuPageTableLib definition to MdePkg Date: Mon, 24 Apr 2023 18:26:05 +0800 Message-Id: <20230424102606.2834-2-dun.tan@intel.com> In-Reply-To: <20230424102606.2834-1-dun.tan@intel.com> References: <20230424102606.2834-1-dun.tan@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,dun.tan@intel.com X-Gm-Message-State: Fdw0MPTe23z7yZROnppAq0Hux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1682331992; bh=PfH5dXa5jDWGH25xMHet9WdxE2rP4AOkaD5SA3c25Rw=; h=Cc:Date:From:Reply-To:Subject:To; b=cMAp/OYgpC8RQ7AuOiOxABx7dmiTTy0Uz+2/4AmRU5JkIRNFZ7M0lKuvvUELQFZBu7W iAuLhQgK5/dysxuX8luOPlxfMVRwP0Bd0All6BOygU01YqeQhXR0T1Xi+nvy0XLMy8TOG BqU7RM1+2sxAa5btOwIOx3uey1frwAbKE5I= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1682331994381100001 Content-Type: text/plain; charset="utf-8" Move CpuPageTableLib definition from UefiCpuPkg to MdePkg. The lib instance still remains in UefiCpuPkg. Move CpuPageTableLib definition to a common location can avoid the case that MdeModulePkg need to depend on UefiCpuPkg since DxeIpl module in MdeModulePkg needs to consume CpuPageTableLib. Signed-off-by: Dun Tan Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni --- {UefiCpuPkg =3D> MdePkg}/Include/Library/CpuPageTableLib.h | 0 MdePkg/MdePkg.dec | 5 ++++- UefiCpuPkg/UefiCpuPkg.dec | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UefiCpuPkg/Include/Library/CpuPageTableLib.h b/MdePkg/Include/= Library/CpuPageTableLib.h similarity index 100% rename from UefiCpuPkg/Include/Library/CpuPageTableLib.h rename to MdePkg/Include/Library/CpuPageTableLib.h diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 7488ccda7a..dfbca2d746 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -4,7 +4,7 @@ # It also provides the definitions(including PPIs/PROTOCOLs/GUIDs) of # EFI1.10/UEFI2.7/PI1.7 and some Industry Standards. # -# Copyright (c) 2007 - 2022, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
# (C) Copyright 2016 - 2021 Hewlett Packard Enterprise Development LP
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights = reserved.
@@ -321,6 +321,9 @@ ## @libraryclass Provides function to support TDX processing. TdxLib|Include/Library/TdxLib.h =20 + ## @libraryclass Provides function for manipulating x86 paging structu= res. + CpuPageTableLib|Include/Library/CpuPageTableLib.h + [LibraryClasses.RISCV64] ## @libraryclass Provides function to make ecalls to SBI BaseRiscVSbiLib|Include/Library/BaseRiscVSbiLib.h diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index a5528277ff..5ad41e9ae3 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -57,9 +57,6 @@ ## @libraryclass Provides function for loading microcode. MicrocodeLib|Include/Library/MicrocodeLib.h =20 - ## @libraryclass Provides function for manipulating x86 paging structu= res. - CpuPageTableLib|Include/Library/CpuPageTableLib.h - [Guids] gUefiCpuPkgTokenSpaceGuid =3D { 0xac05bf33, 0x995a, 0x4ed4, { 0xaa,= 0xb8, 0xef, 0x7a, 0xe8, 0xf, 0x5c, 0xb0 }} gMsegSmramGuid =3D { 0x5802bce4, 0xeeee, 0x4e33, { 0xa1,= 0x30, 0xeb, 0xad, 0x27, 0xf0, 0xe4, 0x39 }} --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#103475): https://edk2.groups.io/g/devel/message/103475 Mute This Topic: https://groups.io/mt/98467035/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-