audk/UefiCpuPkg/Library/BaseRiscVFpuLib/BaseRiscVFpuLib.inf
Heinrich Schuchardt f8c738577f UefiCpuPkg: RiscV64: initialize FPU
The OpenSSL library uses floating point registers.
The is no guarantee that a prior firmware stage has enabled the FPU.

Provide a library BaseRiscVFpuLib to

* Enable the FPU and set it to state 'dirty'.
* Clear the fcsr CSR.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-10-04 04:53:21 +00:00

27 lines
517 B
INI

## @file
# RISC-V FPU library.
#
# Copyright (c) 2024, Canonical Services Ltd
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x0001001b
BASE_NAME = BaseRiscVFpuLib
FILE_GUID = e600fe4d-8595-40f3-90a0-5f043ce155c2
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = RiscVFpuLib
[Sources]
RiscVFpuCore.S
[Packages]
MdePkg/MdePkg.dec
UefiCpuPkg/UefiCpuPkg.dec
[LibraryClasses]
BaseLib