From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web12.7495.1646902118426510278 for ; Thu, 10 Mar 2022 00:48:38 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Er0yHIPe; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: yu.pu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646902118; x=1678438118; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Tb4Yv9TI/0fJEnpwj3teBtIX6IW+myJraSH9OmvYCAY=; b=Er0yHIPe6ZYMlb9dUOdO1OUZwLE/yExQvNS1BesH7Kyhnb8nSsUEXQAh OlLUTocmlorInl82BcVciBH5W/uBBp5E7DljD4L8/l8vHiTkqj9ACuBzY k2Z3WT/mSNUCRZW5xWYv2cjsNkiK4rbmlxyiqSEp1VIaRV4+0ACA7kX4x zsCN2Eis525WOaaDoMpouti8UIXjio4KQncL8aWvwOVpTF5otURhVT1ro MVy1ThN/8kNytXiO3pMCuFpdLuL9ZO+j6CDe+RNsv1dBMpVXAVr0l+do3 bPMOhSj757T/Gsf4su8JIGPfAuedzv9HbRIQmkp6bn3VVrtyFKnwlgUKq Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="235146708" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="235146708" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:48:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="642477162" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga002.fm.intel.com with ESMTP; 10 Mar 2022 00:48:37 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 00:48:36 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 00:48:36 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Thu, 10 Mar 2022 00:48:36 -0800 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.44) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Thu, 10 Mar 2022 00:48:18 -0800 Received: from BN8PR11MB3538.namprd11.prod.outlook.com (2603:10b6:408:83::22) by CY4PR11MB1749.namprd11.prod.outlook.com (2603:10b6:903:11f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.15; Thu, 10 Mar 2022 08:47:00 +0000 Received: from BN8PR11MB3538.namprd11.prod.outlook.com ([fe80::9437:3743:cd3:110f]) by BN8PR11MB3538.namprd11.prod.outlook.com ([fe80::9437:3743:cd3:110f%3]) with mapi id 15.20.5038.029; Thu, 10 Mar 2022 08:47:00 +0000 From: "Pu, Yu" To: "Ni, Ray" , "Kinney, Michael D" , "Gao, Liming" CC: "Wang, Jian J" , "Gao, Liming" , "devel@edk2.groups.io" Subject: Re: [edk2-devel] [PATCH v1 2/7] MdeModulePkg: Invoke GetPhysicalAddressBits() and remove the duplicated code Thread-Topic: [edk2-devel] [PATCH v1 2/7] MdeModulePkg: Invoke GetPhysicalAddressBits() and remove the duplicated code Thread-Index: AQHYLha2rl/8MoSl5UOduEuSfKbf4ayzUgAAgAUG30A= Date: Thu, 10 Mar 2022 08:47:00 +0000 Message-ID: References: <20220302091859.2783-1-yu.pu@intel.com> <20220302091859.2783-3-yu.pu@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.401.20 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 61dbfb08-9d11-4867-8202-08da02728aa5 x-ms-traffictypediagnostic: CY4PR11MB1749:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: o3/uT+dnnOCvQFIb8jFdNNj/23ZGKLeDXW/k1CySr/xc4C7F0cE7V2TbcZYIGTm8c/lMlhC0qEEBvHlCODRZyV+SQ8QKB90NleJMOkBY7s+zg7cbj+/Ra8QDaYwCfutsfGT2V7owoZkX0fP4GlLk2Bm7m6Qx/er6VScd9MwszkbCDWMmD9kM7Kqpi2HR4WIlhO3/Bv3FNCW1F4X8CBIWpRRtDuBGQb5WElSNxON4qm49zaUcmKrHtzhw/uUKOJeTX8omHg83OY+3H79jzp5qlw2xTT9Wh3bxy6XZeGNa4M3+OH99jGhNWXEL/lYHgnxPv9Urew7wDVQur80N2Kr/dhLJNIXVOH9tbiR/NQ9EW4krZQyasCSjNlhPDXHWFvr4QhCnLi9OeKza1AOYA2bWoky1QkJLyg0tP2stRstF256HAPrZvtSPZhwgfzRRB+in5bQtDjHVR7w0fbt5nei99/OZLdpxb/cmUKsyJNk1kkWqC348bhvvOLjaOQijMalFuqq99ooU3uX1Jz2G5XeQwg1/WCKImyTi1yDWaUWGPL4KGA52r2V6La9HZq5eSmpgrKB6MHkiQVAjHPt4LFw308Q7wrZI6hklQr4vID72lnvhJonUvQfrtelsE6WicmAktFr1bqyydbjFNoaSUN7PiuS1nkMAqWExrjHsbp5O3jE8KI5oymq5zROFM+4o1EbJssjI8kI1BUniANRftOM6sIPjP0Bj+xdg63P9B4RvCB4scQLv8WmooI/iECRtsuIjmpMGgzWNcjr5rhQgSCHjS0y+kc97QwDiPaz7Nln2U8aSeFGxarXtS+QL3M4Q+5sv x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR11MB3538.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(26005)(186003)(38100700002)(2906002)(55016003)(33656002)(71200400001)(83380400001)(110136005)(54906003)(19627235002)(316002)(5660300002)(38070700005)(82960400001)(966005)(9686003)(8936002)(52536014)(508600001)(122000001)(76116006)(7696005)(66476007)(66446008)(86362001)(66946007)(4326008)(64756008)(6506007)(66556008)(53546011)(8676002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ju1Fp3VU8cr4dK8PHaL+SjHU9Cm3PqEGZXv2PyboqpnnlInllVhvErxdYQt3?= =?us-ascii?Q?pOo1b1DaIXh5uYq0TW/ETnU1MBXJT3gy8Ygv+TxSuSSRnzc0BpTMiC+s/Gil?= =?us-ascii?Q?L4S8S9ye2T2HGAqM7opixsyL+UcP7Y3zKif9kbnkDOtG3lIn/Rw90xpwEpRJ?= =?us-ascii?Q?RyWER0GT/nXU98v11Gl+H6Ek6HHOvRR4GhX2D9+690VyRolDVtxHw+jYpue6?= =?us-ascii?Q?M1HPxTOrg14Cwg0gwbDoyBmUvDvSM4e/+CN8mqc7AbIrM68IrdYsplxlR56A?= =?us-ascii?Q?FpXNBaFdOipnu/VqWLa9lsnMFslrf9srOqf2N5bXmapx+xHNJEsQyeV+fnaN?= =?us-ascii?Q?PU/Sjy8sdE2krpS+r+NrU1+8oDJ/ld3BuuXR8HZHH8JHgiqHeOE+3Eas9l83?= =?us-ascii?Q?bn0iQ6df0q9pilZekC4VwCKcA+uczfRhIpOIXkiY1v1ZqhqY5rpdHiXZ0y3n?= =?us-ascii?Q?T+kSZHypzKqZAw0Jx5KOa6CipkMGpVIZQP4I/gHIpON8pwWnerF6Mp80wxCw?= =?us-ascii?Q?zpcW0jlEz4FPI4xm+oRvlH6MyWNDBzyEWO0B2sWhlVDhm3cm037jHGnkMdnF?= =?us-ascii?Q?ajK/YAe4Q2XMLhxjLSkuH6r/dtOcstFbwu0XCauchihlcU9h2nOZYFDXE8Fm?= =?us-ascii?Q?rO3eLX2sTzUMEs5Sg69RFrn8DL6duKEjFHzHL/cxJ61NEzzhP2nvRLY6lfMP?= =?us-ascii?Q?Vl1stLB51mjSCloD5eLrOMa67/ZvyvR6tuvgqGYQ8QydBaz2KBw/HB6lOsKG?= =?us-ascii?Q?r881kYR95msAlKsPSmtGflAhJ9F5PDaI9aOtUiMcdkYl3nyNkzgNlk9m4W0i?= =?us-ascii?Q?7sWZjrO5oPTX3fLCbzLiePtnjTfqcv0OZ2l1J9JkuVeuebQAhIkVNYM8Comi?= =?us-ascii?Q?Wp52k2v3UCIjUjlOB/03n6rPFk3VQ44WIBE57w33Z/rfgECSO93iqoUUC5lN?= =?us-ascii?Q?gccEf3v6xSoli9d8HFxL9Iuaw4EhTxEh3Iqm8PBVDEmG1PTehOBq9vT3XayV?= =?us-ascii?Q?sfOYGSnTz9ha+/UfhQpmL5wS2lJWR1isQmMGpCdarIz/y93EF8AzaUJ1VnlT?= =?us-ascii?Q?d73c6oK4i3UbQA5yJm8yoe3A/Jr4WWQu6wHqNmb8okEv5wMIgY+Ep1NoZk5O?= =?us-ascii?Q?QO30rgbZwOkZf+CbJSPcTY+o7vJbnXWhpOsXKdJD+cuwhUgjisbFoHjPfvOq?= =?us-ascii?Q?3/KEgxWKoUOuJPqM2/xryV0dCvaK+1ZAPF6t4s7Y9MnrnPw7/3XySe96hw9l?= =?us-ascii?Q?qnQct1DNVC8Uho+Lvv3AOqcJwk9yqX+y5TFv0HeE4HcSyYz2f0CKoojOeO33?= =?us-ascii?Q?K8xI9DF+I3MEp3qR6H1PxVBaj7V6GYpSjn2ohThAoLNqEi3f67OpF8GbylVW?= =?us-ascii?Q?QfCpNvZmoOUjpIerzokhuATwl9+bV7w+wGY97Vb0D6fDqHIk1dcQJEo96kCF?= =?us-ascii?Q?g6qjpGLyNhsucTMmIsqKh9S8SB6eDdA3csLO8cM/rm0W9G/FNIyTcRROx8+s?= =?us-ascii?Q?s43zVAijh0l7NGoN/lf1i18K5ECcowigp4wz8PhnHtlTxmArwvZFz308Ag?= =?us-ascii?Q?=3D=3D?= arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=guh3GXHQLL4DAIzU0+mRfBow7qgnNfShtKMkJiY3Tm6MTqLUg7IxGOIt25DC4kf99K9inuYew18FsvjzTWWM4uHAeHzyJKmItMiG1tBJ7SNGworvQ8ZBsq8/FxFlk+h+r6YReCjEzwEs+n9St6FYE6XIfpFLvX6/93QLB+H30qLipKZ3bTssvxU2v3sWsDbpWtDH4J0ZOx8SMhtDn9XuwqNMs88JfBlMu9b922XjKd7emiOPbM2aOytEZMRXu2CoXd8m+oGHHOD0t7qX8j2O7VgTmBW2p2hjgqAjCK6SG6j755N37ZMy+ZaV6+rUdiQ28rIrTJPfC9zwsmZL3c/lcg== arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NPazZsq28JGDnCKtiO7isLoNfqa25X5Br42tr6GfNPA=; b=AlEQkYE1S9lUphYUvaqBBWOOr7cmoJ1W2XFFTwrkG29xaoNwp+XTXVdgnZ2lWH+m9OrSkqneYYHibkBxKDh5jt5533ixRCry+pji/SiKP50+LjKTrKrSxiWLBWvVAJ3DushKnzoCoHOvIWo/3+YY5lH0zCN4lHgjaolovxEAUIbf8XYJM/He3rvrJckaJSkwUXLqc365++mQhcr9l0Jb6/ob9LvnG2Gf9BuKFG010ys/i121Z8SPOnFREBVNNEd1t9I4dn3W2ehzGGuDIpk2+4JJkUAjUBETi/eAnLBE6r7k5qH4VTV8n5nZuzMFJJhTUS1TYri6peZAWRfcHcIDYQ== arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none x-ms-exchange-crosstenant-authas: Internal x-ms-exchange-crosstenant-authsource: BN8PR11MB3538.namprd11.prod.outlook.com x-ms-exchange-crosstenant-network-message-id: 61dbfb08-9d11-4867-8202-08da02728aa5 x-ms-exchange-crosstenant-originalarrivaltime: 10 Mar 2022 08:47:00.1195 (UTC) x-ms-exchange-crosstenant-fromentityheader: Hosted x-ms-exchange-crosstenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d x-ms-exchange-crosstenant-mailboxtype: HOSTED x-ms-exchange-crosstenant-userprincipalname: tbIeBk5t7YVfTX0p1ljgygYCyoQDmsPVhSumk+JgmFnqzVOTeBzPb828rdIMfO58 x-ms-exchange-transport-crosstenantheadersstamped: CY4PR11MB1749 MIME-Version: 1.0 Return-Path: yu.pu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Mike, Liming, This patch makes MdeModulePkg depend on UefiCpuPkg. Ray and me would like to move the UefiCpuLib from UefiCpuPkg to MdePkg, do = you agree with it ? Thanks, Yu -----Original Message----- From: Ni, Ray Sent: Monday, March 7, 2022 11:55 AM To: Kinney, Michael D ; Gao, Liming Cc: Wang, Jian J ; Gao, Liming ; devel@edk2.groups.io; Pu, Yu Subject: RE: [edk2-devel] [PATCH v1 2/7] MdeModulePkg: Invoke GetPhysicalAd= dressBits() and remove the duplicated code Mike, Liming, This patch makes MdeModulePkg depend on UefiCpuPkg. But according to https://github.com/tianocore/edk2/blob/master/MdeModulePkg= /MdeModulePkg.ci.yaml#L49, such dependency is not allowed. Do you agree to move the UefiCpuLib from UefiCpuPkg to MdePkg? The library = header and instance are in following paths: https://github.com/tianocore/edk2/blob/master/UefiCpuPkg/Include/Li= brary/UefiCpuLib.h https://github.com/tianocore/edk2/tree/master/UefiCpuPkg/Library/Ba= seUefiCpuLib Thanks, Ray -----Original Message----- From: devel@edk2.groups.io On Behalf Of Yu Pu Sent: Wednesday, March 2, 2022 5:19 PM To: devel@edk2.groups.io Cc: Pu, Yu ; Wang, Jian J ; Gao, Li= ming Subject: [edk2-devel] [PATCH v1 2/7] MdeModulePkg: Invoke GetPhysicalAddres= sBits() and remove the duplicated code REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3394 Invoke GetPhysicalAddressBits() defined in UefiCpuPkg for CPU physical addr= ess mask calculation and remove the duplicated code in MdeModulePkg. Cc: Jian J Wang Cc: Liming Gao Signed-off-by: Yu Pu --- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c = | 9 ++------- MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c = | 14 ++------------ MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c = | 14 ++------------ MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf = | 2 ++ MdeModulePkg/MdeModulePkg.dsc = | 1 + MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.in= f | 2 ++ MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf = | 2 ++ 7 files changed, 13 insertions(+), 31 deletions(-) diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePk= g/Core/DxeIplPeim/X64/VirtualMemory.c index 0700f310b203..78e91e6e9024 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -22,6 +22,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ +#include #include #include "DxeIpl.h" #include "VirtualMemory.h" @@ -733,13 +734,7 @@ CreateIdentityMappingPageTables ( if (Hob !=3D NULL) { PhysicalAddressBits =3D ((EFI_HOB_CPU *)Hob)->SizeOfMemorySpace; } else { - AsmCpuid (0x80000000, &RegEax, NULL, NULL, NULL); - if (RegEax >=3D 0x80000008) { - AsmCpuid (0x80000008, &RegEax, NULL, NULL, NULL); - PhysicalAddressBits =3D (UINT8)RegEax; - } else { - PhysicalAddressBits =3D 36; - } + PhysicalAddressBits =3D GetPhysicalAddressBits(NULL, NULL); } Page5LevelSupport =3D FALSE; diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEn= try.c b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c index 6b44f50bac70..367bf8cdd1e6 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/SetIdtEntry. +++ c @@ -10,6 +10,7 @@ Copyright (c) 2017, AMD Incorporated. All rights reserved= .
SPDX-License-Identifier: BSD-2-Clause-Patent **/ +#include #include "ScriptExecute.h" // @@ -51,20 +52,9 @@ HookPageFaultHandler ( IN IA32_IDT_GATE_DESCRIPTOR *IdtEntry ) { - UINT32 RegEax; - UINT8 PhysicalAddressBits; UINTN PageFaultHandlerHookAddress; - AsmCpuid (0x80000000, &RegEax, NULL, NULL, NULL); - if (RegEax >=3D 0x80000008) { - AsmCpuid (0x80000008, &RegEax, NULL, NULL, NULL); - PhysicalAddressBits =3D (UINT8)RegEax; - } else { - PhysicalAddressBits =3D 36; - } - - mPhyMask =3D LShiftU64 (1, PhysicalAddressBits) - 1; - mPhyMask &=3D (1ull << 48) - SIZE_4KB; + GetPhysicalAddressBits(NULL, &mPhyMask); // // Set Page Fault entry to catch >4G access diff --git a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c b/MdeModulePk= g/Universal/CapsulePei/X64/X64Entry.c index 05941f9f8d56..06d6129c5e6d 100644 --- a/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c +++ b/MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c @@ -12,6 +12,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #include +#include #include "CommonHeader.h" #define EXCEPTION_VECTOR_NUMBER 0x22 @@ -61,20 +62,9 @@ HookPageFaultHandler ( IN OUT PAGE_FAULT_CONTEXT *PageFaultContext ) { - UINT32 RegEax; - UINT8 PhysicalAddressBits; UINTN PageFaultHandlerHookAddress; - AsmCpuid (0x80000000, &RegEax, NULL, NULL, NULL); - if (RegEax >=3D 0x80000008) { - AsmCpuid (0x80000008, &RegEax, NULL, NULL, NULL); - PhysicalAddressBits =3D (UINT8)RegEax; - } else { - PhysicalAddressBits =3D 36; - } - - PageFaultContext->PhyMask =3D LShiftU64 (1, PhysicalAddressBits) - 1; - PageFaultContext->PhyMask &=3D (1ull << 48) - SIZE_4KB; + GetPhysicalAddressBits(NULL, &(PageFaultContext->PhyMask)); // // Set Page Fault entry to catch >4G access diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf b/MdeModulePkg/Core/Dx= eIplPeim/DxeIpl.inf index 19b8a4c8aefa..45808bcdcd6c 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf +++ b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf @@ -55,6 +55,7 @@ [Packages] MdePkg/MdePkg.dec + UefiCpuPkg/UefiCpuPkg.dec MdeModulePkg/MdeModulePkg.dec [Packages.ARM, Packages.AARCH64] @@ -75,6 +76,7 @@ DebugAgentLib PeiServicesTablePointerLib PerformanceLib + UefiCpuLib [LibraryClasses.ARM, LibraryClasses.AARCH64] ArmMmuLib diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc = index b1d83461865e..da6213c02da0 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -62,6 +62,7 @@ DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableL= ib.inf UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManag= erLib.inf VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf + UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf # # Generic Modules # diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptEx= ecutorDxe.inf b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScrip= tExecutorDxe.inf index fb149c2f0271..dd3dd2fc8c10 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorD= xe.inf +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecut +++ orDxe.inf @@ -41,6 +41,7 @@ [Packages] MdePkg/MdePkg.dec + UefiCpuPkg/UefiCpuPkg.dec MdeModulePkg/MdeModulePkg.dec [LibraryClasses] @@ -54,6 +55,7 @@ UefiBootServicesTableLib CacheMaintenanceLib UefiLib + UefiCpuLib DebugAgentLib LockBoxLib CpuExceptionHandlerLib diff --git a/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf b/MdeModulePk= g/Universal/CapsulePei/CapsuleX64.inf index 35d2535a5b48..75813b1e5481 100644 --- a/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf +++ b/MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf @@ -38,12 +38,14 @@ [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec + UefiCpuPkg/UefiCpuPkg.dec [LibraryClasses] BaseLib DebugLib CpuExceptionHandlerLib DebugAgentLib + UefiCpuLib [Depex] FALSE -- 2.30.0.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#87235): https://edk2.groups.io/g/devel/message/87235 Mute This Topic: https://groups.io/mt/89503325/1712937 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [ray.ni@intel.com] -=3D-=3D-=3D-=3D-=3D-=3D