xv6-cs450/usys.S

31 lines
382 B
ArmAsm
Raw Normal View History

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