From nobody Sun Feb 8 18:30:07 2026 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+103465+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+103465+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1682330769; cv=none; d=zohomail.com; s=zohoarc; b=Oi4a+knMfbq92AyIWsZWr2f2oz7KAbo+L5l9UPYZRlcx5U5hk9MEGxlY0IL799l8MfTfHWwjemMTy6WbwKm5V/gAkX+beiwuUEVix+GsM04ALCaY3YzGUTizY70ziYkeWIv2htnryRngzykHmdLNLEagL23vDWR9joK6cvIcIwc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1682330769; 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=ZM4ZjbDihbqP3tKJfYwPgW7hazlWyC22APLA6qA/51A=; b=JhES1wmJK2MDNlUE349S2SY9gVqzhMQyRovm4I2sQOvVGA/yeQZSxOV3WWC0WLIgMIb3m2za4fquy2gebh2IH+hLxWQ2wmWQrtVyY9MgLF2msso08Oi4D90EZysNW+1IHBSr9eMfeK1PO9I6ZjPAFCFytpw635rrblfypr6c5PM= 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+103465+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 1682330769662205.66705293135306; Mon, 24 Apr 2023 03:06:09 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cG21YY1788612xHJVfhy0CrM; Mon, 24 Apr 2023 03:06:09 -0700 X-Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.47111.1682330765582511830 for ; Mon, 24 Apr 2023 03:06:08 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="343897738" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="343897738" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 03:06:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="686766937" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="686766937" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 03:06:06 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu , Ray Ni Subject: [edk2-devel] [Patch V3 1/8] MdePkg: Move CpuPageTableLib defination to MdePkg Date: Mon, 24 Apr 2023 18:05:45 +0800 Message-Id: <20230424100552.2718-2-dun.tan@intel.com> In-Reply-To: <20230424100552.2718-1-dun.tan@intel.com> References: <20230424100552.2718-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: S6DzdADQ9hvEcGDswurFYYQHx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1682330769; bh=gxI0S+YcTRCd48TFk250w7Hhm27nnWDkaAJ7iceXH3I=; h=Cc:Date:From:Reply-To:Subject:To; b=O26mhgG+JsptLOipI32Tr7dlwZJgS6xwKjuJ9evIv34H9SLYVrsMEQUWCmUW0DaitJK 9pjVa4hymzeb8bS7hJ0LAO9MIQoOWUsC+JCeNY5slICO2j0xjBrrH4DD7/BI/wfuJHHSM 2bxkXFH4EwJ624m7oXc82fLPC3yqTE+bLEI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1682330770304100005 Content-Type: text/plain; charset="utf-8" Move CpuPageTableLib defination from UefiCpuPkg to MdePkg. The lib instance still remains in UefiCpuPkg. Move CpuPageTableLib defination 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 (#103465): https://edk2.groups.io/g/devel/message/103465 Mute This Topic: https://groups.io/mt/98466783/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-