xv6/usys.S

31 lines
382 B
ArmAsm
Raw Normal View History

2006-07-11 01:07:40 +00:00
#include "syscall.h"
#include "traps.h"
#define STUB(name) \
.globl name; \
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
2006-09-06 17:27:19 +00:00
ret
2006-07-11 01:07:40 +00:00
STUB(fork)
STUB(exit)
STUB(wait)
2006-07-11 01:07:40 +00:00
STUB(pipe)
STUB(read)
STUB(write)
STUB(close)
STUB(kill)
2006-07-27 21:10:00 +00:00
STUB(exec)
2006-07-29 09:35:02 +00:00
STUB(open)
2006-08-08 18:07:37 +00:00
STUB(mknod)
2006-08-12 04:33:50 +00:00
STUB(unlink)
STUB(fstat)
2006-08-13 02:12:44 +00:00
STUB(link)
2006-08-14 03:00:13 +00:00
STUB(mkdir)
STUB(chdir)
STUB(dup)
STUB(getpid)
STUB(sbrk)
2007-08-27 13:34:35 +00:00
STUB(sleep)