audk/UefiCpuPkg/Include/Library/BaseRiscVFpuLib.h
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

22 lines
324 B
C

/** @file
Copyright (c) 2024, Canonical Services Ltd<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef BASE_RISCV_FPU_LIB_H_
#define BASE_RISCV_FPU_LIB_H_
/**
Initialize floating point unit
**/
EFI_STATUS
EFIAPI
RiscVInitializeFpu (
VOID
);
#endif /* BASE_RISCV_FPU_LIB_H_ */