os-workshop

same materials and sample source for RV32 OS projects
git clone http://frotz.net/git/os-workshop.git
Log | Files | Refs

ex25-syscalls.S (128B)


      1 
      2 #include "ex25-syscalls.h"
      3 
      4 .globl exit
      5 exit:
      6 	li t0, SYS_EXIT
      7 	ecall
      8 	ret
      9 
     10 .globl xputc
     11 xputc:
     12 	li t0, SYS_XPUTC
     13 	ecall 
     14 	ret