mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-18 08:08:09 +02:00
Adding InitializeFloatingPointUnits, EnableFloatingPointUnits and DisableFloatingPointUnits functions for LoongArch64. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Chao Li <lichao@loongson.cn> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
18 lines
531 B
ArmAsm
18 lines
531 B
ArmAsm
#------------------------------------------------------------------------------
|
|
#
|
|
# DisableFloatingPointUnits() for LoongArch64
|
|
#
|
|
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
ASM_GLOBAL ASM_PFX(DisableFloatingPointUnits)
|
|
|
|
ASM_PFX(DisableFloatingPointUnits):
|
|
li.w $t0, 0x1
|
|
csrxchg $zero, $t0, 0x2
|
|
|
|
jirl $zero, $ra, 0
|
|
.end
|