1/*.global __syscall
2.type   __syscall,@function
3__syscall:
4  lw	a0, 0(sp)
5	lw	a1, 4(sp)
6	lw	a2, 8(sp)
7	lw	a3, 12(sp)
8	lw	a4, 16(sp)
9	lw	a5, 20(sp)
10	lw	a6, 24(sp)
11  lw	a7, 28(sp)
12	ecall
13  eret
14*/
15
16.global __syscall
17.type __syscall,%function
18__syscall:
19  la  t0, 1f
20#if __riscv_xlen == 32
21  lw t1, 0(t0)
22#else
23/*  ld t1, 0(t0) */
24#endif
25  add t0, t0, t1
26#if __riscv_xlen == 32
27  lw  t0, 0(t0)
28#else
29/*  ld  t0, 0(t0) */
30#endif
31  jr  t0
32
33
34.hidden __sysinfo
351:  .word __sysinfo-1b
36