xv6-cs450/usys.S

25 lines
313 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; \
ret
STUB(fork)
STUB(exit)
STUB(wait)
2006-07-11 03:07:40 +02:00
STUB(cons_putc)
STUB(pipe)
STUB(read)
STUB(write)
STUB(close)
STUB(block)
STUB(kill)
STUB(panic)
STUB(cons_puts)
2006-07-27 23:10:00 +02:00
STUB(exec)
2006-07-29 11:35:02 +02:00
STUB(open)