From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=nTwqiSJM; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: dun.tan@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682330768; x=1713866768; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MicjVjEWdwVGASo3Bkt38WH9PeoumQDbtxsUvXmBDxY=; b=nTwqiSJMB8zFdsQMs12iUFi9yBYZKr/6ps3xTmPszWkhjKPPGAWpK55l Zv7H/sdTmHmupz8n3oW0GLbFSJTQG2a1aZQNMB4jgs+iU3rdBuUhlP7Ml mXd6VV5weB1Oc204BH+VceDnasAr3HdGdmP7+0KuLJ+DfzpezC7MkZaiX EXYIt//dXmNca3tf/VYbXox3DcpnQxQFYJCNOlwdPn5BwYjLidtBfpkPk n2UazigOrmsbxFXMsjVCgOPpB5cYAOrxfZaEGsxYvA3VWOSny6LW0ygge Vsm85yRNvFbYOH+1diw4Wj2Xo8RZ+2s0PdyeCqRlC9CAqH7fmJpkoRoxd g==; 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" 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" 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: [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> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20230424100552.2718-1-dun.tan@intel.com> References: <20230424100552.2718-1-dun.tan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 => 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 + ## @libraryclass Provides function for manipulating x86 paging structures. + 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 - ## @libraryclass Provides function for manipulating x86 paging structures. - CpuPageTableLib|Include/Library/CpuPageTableLib.h - [Guids] gUefiCpuPkgTokenSpaceGuid = { 0xac05bf33, 0x995a, 0x4ed4, { 0xaa, 0xb8, 0xef, 0x7a, 0xe8, 0xf, 0x5c, 0xb0 }} gMsegSmramGuid = { 0x5802bce4, 0xeeee, 0x4e33, { 0xa1, 0x30, 0xeb, 0xad, 0x27, 0xf0, 0xe4, 0x39 }} -- 2.31.1.windows.1