Skip to content

Commit 949e559

Browse files
author
rsc
committed
usys.S: put before init.c, STUB -> SYSCALL
1 parent 90bab90 commit 949e559

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

runoff.list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ timer.c
6666

6767
# user-level
6868
initcode.S
69-
init.c
7069
usys.S
70+
init.c
7171
sh.c
7272

7373

usys.S

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
#include "syscall.h"
22
#include "traps.h"
33

4-
#define STUB(name) \
4+
#define SYSCALL(name) \
55
.globl name; \
66
name: \
77
movl $SYS_ ## name, %eax; \
88
int $T_SYSCALL; \
99
ret
1010

11-
STUB(fork)
12-
STUB(exit)
13-
STUB(wait)
14-
STUB(pipe)
15-
STUB(read)
16-
STUB(write)
17-
STUB(close)
18-
STUB(kill)
19-
STUB(exec)
20-
STUB(open)
21-
STUB(mknod)
22-
STUB(unlink)
23-
STUB(fstat)
24-
STUB(link)
25-
STUB(mkdir)
26-
STUB(chdir)
27-
STUB(dup)
28-
STUB(getpid)
29-
STUB(sbrk)
30-
STUB(sleep)
11+
SYSCALL(fork)
12+
SYSCALL(exit)
13+
SYSCALL(wait)
14+
SYSCALL(pipe)
15+
SYSCALL(read)
16+
SYSCALL(write)
17+
SYSCALL(close)
18+
SYSCALL(kill)
19+
SYSCALL(exec)
20+
SYSCALL(open)
21+
SYSCALL(mknod)
22+
SYSCALL(unlink)
23+
SYSCALL(fstat)
24+
SYSCALL(link)
25+
SYSCALL(mkdir)
26+
SYSCALL(chdir)
27+
SYSCALL(dup)
28+
SYSCALL(getpid)
29+
SYSCALL(sbrk)
30+
SYSCALL(sleep)

0 commit comments

Comments
 (0)