Final commit? (not entirely sure what all this is now..)
This commit is contained in:
39
usys.S
Normal file
39
usys.S
Normal file
@ -0,0 +1,39 @@
|
||||
# Generated by gensyscalls.pl. Do not edit.
|
||||
# To change syscall numbers or add new syscalls, edit gensyscalls.pl
|
||||
|
||||
#include "syscall.h"
|
||||
#include "traps.h"
|
||||
|
||||
#define SYSCALL(name) \
|
||||
.globl name; \
|
||||
name: \
|
||||
movl $SYS_ ## name, %eax; \
|
||||
int $T_SYSCALL; \
|
||||
ret
|
||||
|
||||
SYSCALL(fork)
|
||||
SYSCALL(exit)
|
||||
SYSCALL(wait)
|
||||
SYSCALL(pipe)
|
||||
SYSCALL(read)
|
||||
SYSCALL(kill)
|
||||
SYSCALL(exec)
|
||||
SYSCALL(fstat)
|
||||
SYSCALL(chdir)
|
||||
SYSCALL(dup)
|
||||
SYSCALL(getpid)
|
||||
SYSCALL(sbrk)
|
||||
SYSCALL(sleep)
|
||||
SYSCALL(uptime)
|
||||
SYSCALL(open)
|
||||
SYSCALL(write)
|
||||
SYSCALL(mknod)
|
||||
SYSCALL(unlink)
|
||||
SYSCALL(link)
|
||||
SYSCALL(mkdir)
|
||||
SYSCALL(close)
|
||||
SYSCALL(getch)
|
||||
SYSCALL(greeting)
|
||||
SYSCALL(shutdown)
|
||||
SYSCALL(screen)
|
||||
SYSCALL(cls)
|
Reference in New Issue
Block a user