xv6-65oo2/usys.S
Frans Kaashoek 821ee3fc99 not much
2018-10-09 19:33:06 -04:00

32 lines
453 B
ArmAsm

#include "syscall.h"
#include "traps.h"
#define SYSCALL(name) \
.globl name; \
name: \
mov $SYS_ ## name, %rax; \
syscall; \
ret
SYSCALL(fork)
SYSCALL(exit)
SYSCALL(wait)
SYSCALL(pipe)
SYSCALL(read)
SYSCALL(write)
SYSCALL(close)
SYSCALL(kill)
SYSCALL(exec)
SYSCALL(open)
SYSCALL(mknod)
SYSCALL(unlink)
SYSCALL(fstat)
SYSCALL(link)
SYSCALL(mkdir)
SYSCALL(chdir)
SYSCALL(dup)
SYSCALL(getpid)
SYSCALL(sbrk)
SYSCALL(sleep)
SYSCALL(uptime)