1 | #------------------------------------------------------------------------------
|
---|
2 | #
|
---|
3 | # EnableFloatingPointUnits() for LoongArch64
|
---|
4 | #
|
---|
5 | # Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
|
---|
6 | #
|
---|
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | #
|
---|
9 | #------------------------------------------------------------------------------
|
---|
10 | ASM_GLOBAL ASM_PFX(EnableFloatingPointUnits)
|
---|
11 |
|
---|
12 | ASM_PFX(EnableFloatingPointUnits):
|
---|
13 | li.w $t0, 0x1
|
---|
14 | csrxchg $t0, $t0, 0x2
|
---|
15 |
|
---|
16 | jirl $zero, $ra, 0
|
---|
17 | .end
|
---|