1 # See LICENSE for license details.
19 supervisor_trap_entry:
20 j supervisor_trap_entry
23 hypervisor_trap_entry:
24 j hypervisor_trap_entry
65 li t0, MSTATUS_PRV1; csrc mstatus, t0 # run tests in user mode
66 li t0, MSTATUS_IE1; csrs mstatus, t0 # enable interrupts in user mode
67 li t0, MSTATUS_FS; csrs mstatus, t0 # enable FPU
68 li t0, MSTATUS_XS; csrs mstatus, t0 # enable accelerator
71 li t0, MSTATUS_UA; csrc mstatus, t0 # disable RV64 for user mode
79 ## if that didn't stick, we don't have a FPU, so don't initialize it
124 # for now, assume only 1 core
128 # give each core 128KB of stack + TLS
216 .section ".tdata.begin"
220 .section ".tdata.end"