File tree Expand file tree Collapse file tree 2 files changed +22
-22
lines changed Expand file tree Collapse file tree 2 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ timer.c
66
66
67
67
# user-level
68
68
initcode.S
69
- init.c
70
69
usys.S
70
+ init.c
71
71
sh.c
72
72
73
73
Original file line number Diff line number Diff line change 1
1
#include "syscall.h"
2
2
#include "traps.h"
3
3
4
- #define STUB (name) \
4
+ #define SYSCALL (name) \
5
5
.globl name; \
6
6
name: \
7
7
movl $SYS_ ## name, %eax; \
8
8
int $T_SYSCALL; \
9
9
ret
10
10
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)
You can’t perform that action at this time.
0 commit comments