rulimine/common/sys/sbi.asm_riscv64

20 lines
352 B
Plaintext
Raw Permalink Normal View History

2023-06-20 13:24:49 +02:00
.section .text
.global sbicall
sbicall:
2023-08-01 05:06:40 -05:00
.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
.section .note.GNU-stack,"",%progbits