1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#------------------------------------------------------------------------------
#
# 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
|