From 36f2ebbf95125c247ab6e7f26d33aff279223abd Mon Sep 17 00:00:00 2001 From: Wang_Weigen Date: Mon, 20 Dec 2021 15:42:24 +0800 Subject: [PATCH] add fpu status set --- Ubiquitous/XiUOS/arch/risc-v/shared/riscv64_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ubiquitous/XiUOS/arch/risc-v/shared/riscv64_switch.c b/Ubiquitous/XiUOS/arch/risc-v/shared/riscv64_switch.c index d9f9234af..cabc6612b 100644 --- a/Ubiquitous/XiUOS/arch/risc-v/shared/riscv64_switch.c +++ b/Ubiquitous/XiUOS/arch/risc-v/shared/riscv64_switch.c @@ -24,7 +24,7 @@ void __attribute__((naked)) SwitchKTaskContextExit() asm volatile ("mv a0, sp"); asm volatile ("jal RestoreMstatus"); #else - asm volatile ("li t0, 0x00001800"); + asm volatile ("li t0, 0x00007800"); asm volatile ("csrw mstatus, t0"); asm volatile (LoadDS " a0, 2 * " RegLengthS "(sp)"); asm volatile ("csrs mstatus, a0");