TianoCore EDK2 master
Loading...
Searching...
No Matches
X86BaseCpuLib.c File Reference

Go to the source code of this file.

Functions

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

Detailed Description

This library defines some routines that are generic for IA32 family CPU.

The library routines are UEFI specification compliant.

Copyright (c) 2020, AMD Inc. All rights reserved.
Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file X86BaseCpuLib.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 48 of file X86BaseCpuLib.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 X86BaseCpuLib.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 27 of file X86BaseCpuLib.c.