addind more important kernel files and also fixing bugs

This commit is contained in:
2025-05-15 02:37:06 -07:00
parent 512bd49ff7
commit a9f2826014
21 changed files with 489 additions and 17 deletions

View File

@@ -1,6 +1,17 @@
#ifndef SYSCALLS_H
#define SYSCALLS_H
// Syscall numbers
typedef enum {
SYSCALL_INIT = 0,
SYSCALL_SPAWN,
SYSCALL_YIELD
} syscall_code_t;
// Syscall dispatcher
void syscall_handler();
// Syscall interface
void syscall(int code, ...);
#endif // SYSCALLS_H