// See LICENSE for license details. #include "encoding.h" .section .text,"ax",@progbits .globl _start _start: la sp, stack_top la a0, trap_entry la gp, _gp csrw evec, a0 li a0, SR_S | SR_PS | SR_EI | SR_S64 or a1, a0, SR_EF | SR_EA csrw status, a1 csrr a1, status csrw status, a0 and a2, a1, SR_EF sw a2, have_fp, t0 and a2, a1, SR_EA sw a2, have_accelerator, t0 call boot