]> git.proxmox.com Git - mirror_edk2.git/blob - UefiCpuPkg/Include/Library/UefiCpuLib.h
Introduce UefiCpuLib library class in UefiCpuPkg and add one instance of BaseUefiCpuL...
[mirror_edk2.git] / UefiCpuPkg / Include / Library / UefiCpuLib.h
1 /** @file
2 Public header file for UEFI CPU library class.
3
4 This library class defines some routines that are generic for IA32 family CPU
5 to be UEFI specification compliant.
6
7 Copyright (c) 2009, Intel Corporation
8 All rights reserved. This program and the accompanying materials
9 are licensed and made available under the terms and conditions of the BSD License
10 which accompanies this distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
12
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15
16 **/
17
18 #ifndef __UEFI_CPU_LIB_H__
19 #define __UEFI_CPU_LIB_H__
20
21
22
23 /**
24 Initializes floating point units for requirement of UEFI specification.
25
26 This function initializes floating-point control word to 0x027F (all exceptions
27 masked,double-precision, round-to-nearest) and multimedia-extensions control word
28 (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
29 for masked underflow).
30
31 **/
32 VOID
33 EFIAPI
34 InitializeFloatingPointUnits (
35 VOID
36 );
37
38 #endif