Final commit? (not entirely sure what all this is now..)

This commit is contained in:
2025-07-05 11:44:43 +01:00
parent 8e3094f644
commit 20cc8788d8
198 changed files with 56377 additions and 2 deletions

39
usys.S Normal file
View 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)