]>
git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Library/UefiCpuLib.h
0ff4a35774c15ce7ddc72b248eca4f1f2fb7e68b
2 Public header file for UEFI CPU library class.
4 This library class defines some routines that are generic for IA32 family CPU
5 to be UEFI specification compliant.
7 Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
8 Copyright (c) 2020, AMD Inc. All rights reserved.<BR>
9 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #ifndef __UEFI_CPU_LIB_H__
14 #define __UEFI_CPU_LIB_H__
17 Initializes floating point units for requirement of UEFI specification.
19 This function initializes floating-point control word to 0x027F (all exceptions
20 masked,double-precision, round-to-nearest) and multimedia-extensions control word
21 (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
22 for masked underflow).
27 InitializeFloatingPointUnits (
32 Determine if the standard CPU signature is "AuthenticAMD".
34 @retval TRUE The CPU signature matches.
35 @retval FALSE The CPU signature does not match.
40 StandardSignatureIsAuthenticAMD (
45 Return the 32bit CPU family and model value.
47 @return CPUID[01h].EAX with Processor Type and Stepping ID cleared.
56 Return the CPU stepping ID.
57 @return CPU stepping ID value in CPUID[01h].EAX.