enable fpu

This commit is contained in:
LinJiawei 2021-01-10 12:06:11 +08:00
parent 862aa8c188
commit 04fe5a7498
1 changed files with 5 additions and 0 deletions

View File

@ -2,7 +2,12 @@
.globl _start
.type _start, @function
#define MSTATUS_FS 0x00006000
_start:
mv s0, zero
la sp, _stack_pointer
li a0, MSTATUS_FS & (MSTATUS_FS >> 1)
csrs mstatus, a0
csrwi fcsr, 0
jal _trm_init