Skip to content

Commit

Permalink
usys.S: put before init.c, STUB -> SYSCALL
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed May 31, 2009
1 parent 90bab90 commit 949e559
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion runoff.list
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ timer.c

# user-level
initcode.S
init.c
usys.S
init.c
sh.c


42 changes: 21 additions & 21 deletions usys.S
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
#include "syscall.h"
#include "traps.h"

#define STUB(name) \
#define SYSCALL(name) \
.globl name; \
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret

STUB(fork)
STUB(exit)
STUB(wait)
STUB(pipe)
STUB(read)
STUB(write)
STUB(close)
STUB(kill)
STUB(exec)
STUB(open)
STUB(mknod)
STUB(unlink)
STUB(fstat)
STUB(link)
STUB(mkdir)
STUB(chdir)
STUB(dup)
STUB(getpid)
STUB(sbrk)
STUB(sleep)
SYSCALL(fork)
SYSCALL(exit)
SYSCALL(wait)
SYSCALL(pipe)
SYSCALL(read)
SYSCALL(write)
SYSCALL(close)
SYSCALL(kill)
SYSCALL(exec)
SYSCALL(open)
SYSCALL(mknod)
SYSCALL(unlink)
SYSCALL(fstat)
SYSCALL(link)
SYSCALL(mkdir)
SYSCALL(chdir)
SYSCALL(dup)
SYSCALL(getpid)
SYSCALL(sbrk)
SYSCALL(sleep)

0 comments on commit 949e559

Please sign in to comment.