mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
riscv/saveusercontext: Fix FPU state save
This commit is contained in:
@@ -56,7 +56,10 @@ up_saveusercontext:
|
|||||||
REGSTORE sp, REG_X2(a0) /* original SP */
|
REGSTORE sp, REG_X2(a0) /* original SP */
|
||||||
REGSTORE x1, REG_EPC(a0)
|
REGSTORE x1, REG_EPC(a0)
|
||||||
|
|
||||||
riscv_savefpu a0
|
#ifdef CONFIG_ARCH_FPU
|
||||||
|
addi a0, a0, INT_XCPT_SIZE /* Save FPU after integer regs */
|
||||||
|
riscv_savefpu a0
|
||||||
|
#endif
|
||||||
|
|
||||||
li a0, 0
|
li a0, 0
|
||||||
jr ra
|
jr ra
|
||||||
|
|||||||
Reference in New Issue
Block a user