mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-20 09:08:10 +02:00
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>
22 lines
324 B
C
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_ */
|