rulimine/common/sys/sbi.asm_riscv64

18 lines
313 B
Plaintext

.section .text
.global sbicall
sbicall:
.option norelax
mv t0, a0
mv t1, a1
mv a0, a2
mv a1, a3
mv a2, a4
mv a3, a5
mv a4, a6
mv a5, a7
mv a7, t0
mv a6, t1
ecall
ret