summaryrefslogtreecommitdiff
path: root/usys.S
diff options
context:
space:
mode:
Diffstat (limited to 'usys.S')
-rw-r--r--usys.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/usys.S b/usys.S
new file mode 100644
index 0000000..c399d62
--- /dev/null
+++ b/usys.S
@@ -0,0 +1,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)