TianoCore EDK2 master
UefiCpuLib.h File Reference

Go to the source code of this file.

Functions

VOID EFIAPI InitializeFloatingPointUnits (VOID)
 
BOOLEAN EFIAPI StandardSignatureIsAuthenticAMD (VOID)
 
UINT32 EFIAPI GetCpuFamilyModel (VOID)
 
UINT8 EFIAPI GetCpuSteppingId (VOID)
 

Detailed Description

Public header file for UEFI CPU library class.

This library class defines some routines that are generic for IA32 family 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

Definition in file UefiCpuLib.h.

Function Documentation

◆ GetCpuFamilyModel()

UINT32 EFIAPI GetCpuFamilyModel ( VOID  )

Return the 32bit CPU family and model value.

Returns
CPUID[01h].EAX with Processor Type and Stepping ID cleared.

Definition at line 48 of file BaseUefiCpuLib.c.

◆ GetCpuSteppingId()

UINT8 EFIAPI GetCpuSteppingId ( VOID  )

Return the CPU stepping ID.

Returns
CPU stepping ID value in CPUID[01h].EAX.

Definition at line 72 of file BaseUefiCpuLib.c.

◆ InitializeFloatingPointUnits()

VOID EFIAPI InitializeFloatingPointUnits ( VOID  )

Initializes floating point units for requirement of UEFI specification.

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, flush to zero for masked underflow).

◆ StandardSignatureIsAuthenticAMD()

BOOLEAN EFIAPI StandardSignatureIsAuthenticAMD ( VOID  )

Determine if the standard CPU signature is "AuthenticAMD".

Return values
TRUEThe CPU signature matches.
FALSEThe CPU signature does not match.

Definition at line 27 of file BaseUefiCpuLib.c.