summaryrefslogtreecommitdiff
path: root/usys.S
blob: c399d62fbf4226522dd547ac612540127c94268e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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(cons_putc)
STUB(pipe)
STUB(read)
STUB(write)
STUB(close)
STUB(block)