From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web09.6938.1648790536331257126 for ; Thu, 31 Mar 2022 22:22:16 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Kj8BhfpD; spf=pass (domain: intel.com, ip: 192.55.52.115, 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=1648790536; x=1680326536; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Mf4tfQdEgAkpNtBShcN5OYzsjZ/SlIXw0pwzkDgvRwE=; b=Kj8BhfpDUS4I4TNFBUTJOfLLRjYDjOseR9QBI4FU5LIfX2sNvG9ZKSI0 uHyzuKemWJupP7OIpPlrVljzdej5x7F5/FjQRRxzRTHl0lD4vTx5uldk5 +EoZkRqk1vcw/q/rkYwGt4+4kiVAig35DOHJXqib0P6CDOyv4vYgbWV+c Xq67eKBEbB2XurxH1BWVxriXTFOt6J91TYkP46AhHd0d4JOJaBUYs+zHV oPnR6ydCctJh8CWEmEdVT4QF1BXfyQ4Sd8Dk4RoCdWz2J16e0frJFJgkC 8GnLMzSS9543IQuHepLzH4TURhZVP6Jtc9q14Mm5E1SRbAdX35AFQXp8b g==; X-IronPort-AV: E=McAfee;i="6200,9189,10303"; a="260224529" X-IronPort-AV: E=Sophos;i="5.90,226,1643702400"; d="scan'208";a="260224529" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2022 22:22:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,226,1643702400"; d="scan'208";a="567158748" Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga008.jf.intel.com with ESMTP; 31 Mar 2022 22:22:14 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu Subject: [PATCH v1 0/6] Merge UefiCpuLib to CpuLib Date: Fri, 1 Apr 2022 13:22:05 +0800 Message-Id: <20220401052211.2914-1-yu.pu@intel.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3394=0D Today lots of duplicated code call CPUID and calculates the address mask. = =0D Adding an API named GetPhysicalAddressBits in UefiCpuLib can solve this =0D problem, but at the same time cause MdeModulePkg depend on UefiCpuPkg =0D which does not meet the design spec. So merge UefiCpuLib to CpuLib is a =0D good way to sovle these problems. To minimize the impact,this operation =0D is divided into four steps. This patch sets contain the first step: add=0D CpuLib to module INFs that depend on UefiCpuLib. Yu Pu (6): IntelFsp2Pkg: Add CpuLib to module INFs that depend on UefiCpuLib IntelFsp2WrapperPkg: Add CpuLib to module INFs that depend on UefiCpuLib. MdePkg: Add CpuLib to module INFs that depend on UefiCpuLib. OvmfPkg: Add CpuLib to module INFs that depend on UefiCpuLib. UefiCpuPkg: Add CpuLib to module INFs that depend on UefiCpuLib. UefiPayloadPkg: Add CpuLib to module INFs that depend on UefiCpuLib. OvmfPkg/Sec/SecMain.c | 1 + UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 1 + UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 1 + IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf | 1 + IntelFsp2Pkg/FspSecCore/SecMain.h | 1 + IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf | 1 + IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf | 1 + MdePkg/MdeLibs.dsc.inc | 1 + OvmfPkg/Sec/SecMain.inf | 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 + UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | 1 + UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf | 1 + UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf | 1 + 18 files changed, 18 insertions(+) --=20 2.30.0.windows.2