os-workshop

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

syscalls.S (221B)


      1 // Copyright 2022, Brian Swetland <swetland@frotz.net>
      2 // Licensed under the Apache License, Version 2.0
      3 
      4 #define __SYSCALL(n,rtype,name,args) .globl name; name:; addi t0, x0, n; ecall; ret
      5 
      6 #include <xos/syscall-tmpl.h>