add fpu status set

This commit is contained in:
Wang_Weigen 2021-12-20 15:42:24 +08:00
parent cb8c68659c
commit 36f2ebbf95
1 changed files with 1 additions and 1 deletions

View File

@ -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");