diff options
Diffstat (limited to 'src/user/usys.S')
| -rw-r--r-- | src/user/usys.S | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/user/usys.S b/src/user/usys.S index e805d82..f85917e 100644 --- a/src/user/usys.S +++ b/src/user/usys.S @@ -7,8 +7,16 @@ ecall; \ ret +#define SYSCALL_NAME(name, sysname) \ + .global name; \ + name: \ + li a7, SYS_ ## sysname; \ + ecall; \ + ret + +SYSCALL_NAME(sys_exit, exit) + SYSCALL(fork) -SYSCALL(exit) SYSCALL(wait) SYSCALL(pipe) SYSCALL(read) @@ -28,4 +36,6 @@ SYSCALL(getpid) SYSCALL(sbrk) SYSCALL(sleep) SYSCALL(uptime) -SYSCALL(putc)
\ No newline at end of file +SYSCALL(putc) +SYSCALL(disk_test) +SYSCALL(lseek)
\ No newline at end of file |
