From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 44F827803CC for ; Thu, 25 Jan 2024 01:11:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=lOcNtOYlvXszJUAdiB1VhE3c9NXcRx1EDiEjJ0l/ngU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20140610; t=1706145099; v=1; b=RcC3cFSXuWrAgLEupu6tbp9SXx1rxN6RWUgsznIRn43SXlcnnPE7rzJOEOuPn2FZbUya8f/6 GTg0T8Ktx8rIkGX8SbpMR5TZzkgzpMWlJb+jnmz5QHIMeJBYyQnweER4TL2yKqZHe49oWfGJS8I jlhvQabKLDOjz24CvcyIJjJ8= X-Received: by 127.0.0.2 with SMTP id svaUYY7687511xOq6HUkRKTb; Wed, 24 Jan 2024 17:11:39 -0800 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.5594.1706145097641599172 for ; Wed, 24 Jan 2024 17:11:39 -0800 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id 03600DDA7E6 for ; Thu, 25 Jan 2024 09:11:34 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id E9263DDA7C7 for ; Thu, 25 Jan 2024 09:11:33 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by cxsh.intel-email.com (Postfix) with SMTP id 44406DDA7D0 for ; Thu, 25 Jan 2024 09:11:30 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Thu, 25 Jan 2024 09:11:27 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: "'Laszlo Ersek'" , "'Michael D Kinney'" , Cc: "'Zhiguang Liu'" , "'Qing Huang'" References: <20240123225236.618-1-michael.d.kinney@intel.com> In-Reply-To: Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIOWbnuWkjTogW1BhdGNoIDEvMV0gTWRlUGtnL0xpYnJhcnkvQmFzZUNwdUxpYk51bGw6IEFkZCBtaXNzaW5nIFg4NiBzcGVjaWZpYyBzZXJ2aWNlcw==?= Date: Thu, 25 Jan 2024 09:11:29 +0800 Message-ID: <01f501da4f2b$6d522920$47f67b60$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQInDzzfQ8NDKkZ4vA15RavOxG2TWAEJ7fr0sEfo1EA= Precedence: Bulk 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,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: uwqCidDuJQcjC1P8ybas7Rj7x7686176AA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=RcC3cFSX; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Liming Gao > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: Laszlo Ersek > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2024=E5=B9=B41=E6=9C=8824=E6=97=A5 = 21:00 > =E6=94=B6=E4=BB=B6=E4=BA=BA: Michael D Kinney ; > devel@edk2.groups.io > =E6=8A=84=E9=80=81: Liming Gao ; Zhiguang Liu > ; Qing Huang > =E4=B8=BB=E9=A2=98: Re: [Patch 1/1] MdePkg/Library/BaseCpuLibNull: Add mi= ssing X86 > specific services >=20 > On 1/23/24 23:52, Michael D Kinney wrote: > > * Add InitializeFloatingPointUnits() to x86 specific file > > * Add GetCpuFamilyModel() to x86 specific file > > * Add GetCpuSteppingId() to x86 specific file > > * Move StandardSignatureIsAuthenticAMD() to x86 specific file. > > * Add CpuLib library class include to all C files. > > > > Cc: Liming Gao > > Cc: Zhiguang Liu > > Cc: Laszlo Ersek > > Cc: Qing Huang > > Signed-off-by: Michael D Kinney > > --- > > .../Library/BaseCpuLibNull/BaseCpuLibNull.c | 17 +---- > > .../Library/BaseCpuLibNull/BaseCpuLibNull.inf | 3 + > > .../BaseCpuLibNull/X86BaseCpuLibNull.c | 64 > +++++++++++++++++++ > > 3 files changed, 69 insertions(+), 15 deletions(-) > > create mode 100644 > MdePkg/Library/BaseCpuLibNull/X86BaseCpuLibNull.c > > > > diff --git a/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c > b/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c > > index 3542cf6921f7..0080022b94ef 100644 > > --- a/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c > > +++ b/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.c > > @@ -6,6 +6,8 @@ > > > > **/ > > > > +#include > > + > > /** > > Places the CPU in a sleep state until an interrupt is received. > > > > @@ -35,18 +37,3 @@ CpuFlushTlb ( > > ) > > { > > } > > - > > -/** > > - 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 FALSE; > > -} > > diff --git a/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf > b/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf > > index a9e8399038a6..9f20d6833f56 100644 > > --- a/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf > > +++ b/MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf > > @@ -22,5 +22,8 @@ [Defines] > > [Sources] > > BaseCpuLibNull.c > > > > +[Sources.IA32, Sources.X64] > > + X86BaseCpuLibNull.c > > + > > [Packages] > > MdePkg/MdePkg.dec > > diff --git a/MdePkg/Library/BaseCpuLibNull/X86BaseCpuLibNull.c > b/MdePkg/Library/BaseCpuLibNull/X86BaseCpuLibNull.c > > new file mode 100644 > > index 000000000000..4469bcc767cf > > --- /dev/null > > +++ b/MdePkg/Library/BaseCpuLibNull/X86BaseCpuLibNull.c > > @@ -0,0 +1,64 @@ > > +/** @file > > + Null instance of CPU Library for IA32/X64 specific services. > > + > > + Copyright (c) 2024, Intel Corporation. All rights reserved.
> > + SPDX-License-Identifier: BSD-2-Clause-Patent > > + > > +**/ > > + > > +#include > > + > > +/** > > + Initializes floating point units for requirement of UEFI specificati= on. > > + This function initializes floating-point control word to 0x027F (all > exceptions > > + masked,double-precision, round-to-nearest) and multimedia-extensions > control word > > + (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, f= lush > 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 FALSE; > > +} > > + > > +/** > > + Return the 32bit CPU family and model value. > > + @return CPUID[01h].EAX with Processor Type and Stepping ID cleared. > > +**/ > > +UINT32 > > +EFIAPI > > +GetCpuFamilyModel ( > > + VOID > > + ) > > +{ > > + return 0; > > +} > > + > > +/** > > + Return the CPU stepping ID. > > + @return CPU stepping ID value in CPUID[01h].EAX. > > +**/ > > +UINT8 > > +EFIAPI > > +GetCpuSteppingId ( > > + VOID > > + ) > > +{ > > + return 0; > > +} >=20 > Reviewed-by: Laszlo Ersek -=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 (#114357): https://edk2.groups.io/g/devel/message/114357 Mute This Topic: https://groups.io/mt/103945335/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-