From nobody Sun Feb 8 19:38:14 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+87925+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+87925+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1648079391; cv=none; d=zohomail.com; s=zohoarc; b=J3Iek1m7cImsYbuCmX0DM80QLeD+ch4YvNvpzi0GJmNlBh/+Vyfkuf7zWPhl9W46urc1lJmoIL8xnWrrc0I/PKtVCJW0sF2FpNCMHY0iVaExBIOOmylOhUVTMpQMyByI3ItMBMNi7RlAM8RQNMKU9VRktneICogLRQOcvchcgos= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648079391; 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=D59mgtptMhF09sbuKbTjEyqToQr7aE1zrllWT5g8koo=; b=c52gQu/XIxwyt9A9fxd2iad7BpYIfgTnqJhfnngeKJvmz7IJ2pAPOQGsIbMXgvh1Mp8nVuNo5J8bXwseBkaS2mqsZtGNfmK8FAtLRhEqmIwuB4nEjyFg5pJjPoIZk1wUZeSOJ2nsK4iOuPxZI2UjIVTq4kMryviDTDOJ9VRwRsI= 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+87925+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 1648079391086263.8089039498044; Wed, 23 Mar 2022 16:49:51 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 0MGxYY1788612xFU4IzUws0Q; Wed, 23 Mar 2022 16:49:50 -0700 X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web08.7983.1648036097703028981 for ; Wed, 23 Mar 2022 04:48:42 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10294"; a="256911880" X-IronPort-AV: E=Sophos;i="5.90,204,1643702400"; d="scan'208";a="256911880" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2022 04:48:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,204,1643702400"; d="scan'208";a="544160545" X-Received: from shwdeopenlab704.ccr.corp.intel.com ([10.239.182.50]) by orsmga007.jf.intel.com with ESMTP; 23 Mar 2022 04:48:40 -0700 From: Yu Pu To: devel@edk2.groups.io Cc: Yu Pu , Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-devel] [PATCH v1 09/17] UefiCpuPkg: Move API and implementation from Date: Wed, 23 Mar 2022 19:47:54 +0800 Message-Id: <20220323114802.1008-10-yu.pu@intel.com> In-Reply-To: <20220323114802.1008-1-yu.pu@intel.com> References: <20220323114802.1008-1-yu.pu@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,yu.pu@intel.com X-Gm-Message-State: q7CkDnuiSD6uvSa5eliJLdn6x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1648079390; bh=jela0n4hp2kAmHlyzlsrmPTe56642hPwM5nUOEXp/Yw=; h=Cc:Date:From:Reply-To:Subject:To; b=X2YgGydIXc/fO6kWjJwseULOV/wL2v0InQNGl7mZBV83QFb0l6R2qsySqPo/SgYPPHx Po2h+MUWqpyiEG5wPSKF1usB9mvzsvTeKOvejO+Iffkos7NmDp8KG8F5gBTiW+5ivEwTe 5i1EJCHZ6HFw5Q+OqwEGtaok4dpOcD3RO/0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1648079391727100031 Content-Type: text/plain; charset="utf-8" Step 2 to merge UefiCpuLib to CpuLib. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Signed-off-by: Yu Pu --- UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c | 17 ++++++ UefiCpuPkg/Include/Library/UefiCpuLib.h | 60 --------------= ------ UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf | 8 +-- 3 files changed, 18 insertions(+), 67 deletions(-) diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c b/UefiC= puPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c new file mode 100644 index 000000000000..a5e7a20c35f5 --- /dev/null +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLibNull.c @@ -0,0 +1,17 @@ +/** @file +This library contains a dummy function to pass build. + +Copyright (c) 2022, Intel Corporation. All rights reserved. + +SPDX-License-Identifier: BSD-2-Clause-Patent +**/ +#include + +STATIC +VOID +Dummy ( + VOID + ) +{ + ; +} \ No newline at end of file diff --git a/UefiCpuPkg/Include/Library/UefiCpuLib.h b/UefiCpuPkg/Include/L= ibrary/UefiCpuLib.h index 0ff4a35774c1..378ef88c6676 100644 --- a/UefiCpuPkg/Include/Library/UefiCpuLib.h +++ b/UefiCpuPkg/Include/Library/UefiCpuLib.h @@ -1,65 +1,5 @@ -/** @file - Public header file for UEFI CPU library class. - - This library class defines some routines that are generic for IA32 famil= y CPU - to be UEFI specification compliant. - - Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.
- Copyright (c) 2020, AMD Inc. All rights reserved.
- SPDX-License-Identifier: BSD-2-Clause-Patent - -**/ - #ifndef __UEFI_CPU_LIB_H__ #define __UEFI_CPU_LIB_H__ =20 -/** - Initializes floating point units for requirement of UEFI specification. - - This function initializes floating-point control word to 0x027F (all exc= eptions - masked,double-precision, round-to-nearest) and multimedia-extensions con= trol word - (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush= to zero - for masked underflow). - -**/ -VOID -EFIAPI -InitializeFloatingPointUnits ( - VOID - ); - -/** - Determine if the standard CPU signature is "AuthenticAMD". - - @retval TRUE The CPU signature matches. - @retval FALSE The CPU signature does not match. - -**/ -BOOLEAN -EFIAPI -StandardSignatureIsAuthenticAMD ( - VOID - ); - -/** - Return the 32bit CPU family and model value. - - @return CPUID[01h].EAX with Processor Type and Stepping ID cleared. -**/ -UINT32 -EFIAPI -GetCpuFamilyModel ( - VOID - ); - -/** - Return the CPU stepping ID. - @return CPU stepping ID value in CPUID[01h].EAX. -**/ -UINT8 -EFIAPI -GetCpuSteppingId ( - VOID - ); =20 #endif diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf b/UefiCpu= Pkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf index 34d3a7bb4303..9f8b62d87aae 100644 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf @@ -24,14 +24,8 @@ # VALID_ARCHITECTURES =3D IA32 X64 # =20 -[Sources.IA32] - Ia32/InitializeFpu.nasm - -[Sources.X64] - X64/InitializeFpu.nasm - [Sources] - BaseUefiCpuLib.c + BaseUefiCpuLibNull.c =20 [Packages] MdePkg/MdePkg.dec --=20 2.30.0.windows.2 -=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 (#87925): https://edk2.groups.io/g/devel/message/87925 Mute This Topic: https://groups.io/mt/89988799/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-