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
72 # make sure processor supports RV64 if this was compiled for RV64
84 ## if that didn't stick, we don't have a FPU, so don't initialize it
89 #ifdef __riscv_hard_float
127 # initialize global pointer
135 # for now, assume only 1 core
139 # give each core 128KB of stack + TLS
227 .section ".tdata.begin"
231 .section ".tdata.end"