TianoCore EDK2 master
Loading...
Searching...
No Matches
X86BaseCpuLibNull.c File Reference
#include <Library/CpuLib.h>

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

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

Definition in file X86BaseCpuLibNull.c.

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 46 of file X86BaseCpuLibNull.c.

◆ GetCpuSteppingId()

UINT8 EFIAPI GetCpuSteppingId ( VOID  )

Return the CPU stepping ID.

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

Definition at line 59 of file X86BaseCpuLibNull.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).

Definition at line 20 of file X86BaseCpuLibNull.c.

◆ 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 33 of file X86BaseCpuLibNull.c.