1#include "syscall.h" 2#include "traps.h" 3 4#define STUB(name) \ 5 .globl name; \ 6 name: \ 7 movl $SYS_ ## name, %eax; \ 8 int $T_SYSCALL; \ 9 ret 10 11STUB(fork) 12STUB(exit) 13STUB(wait) 14STUB(cons_putc) 15STUB(pipe) 16STUB(read) 17STUB(write) 18STUB(close) 19STUB(block) 20STUB(kill) 21STUB(panic) 22STUB(cons_puts) 23STUB(exec) 24STUB(open) 25STUB(mknod) 26STUB(unlink) 27STUB(fstat) 28