Add support for some basic system calls and args handling correctly. #29

Merged
sb3923 merged 49 commits from system-calls into master 2024-11-07 19:36:30 +00:00
5 changed files with 199 additions and 20 deletions
Showing only changes of commit b3e23eb1cc - Show all commits

View File

@@ -3,6 +3,7 @@
#include "threads/vaddr.h" #include "threads/vaddr.h"
#include "threads/interrupt.h" #include "threads/interrupt.h"
#include "threads/thread.h" #include "threads/thread.h"
#include "userprog/process.h"
#include <stdio.h> #include <stdio.h>
#include <syscall-nr.h> #include <syscall-nr.h>
@@ -115,10 +116,9 @@ syscall_exec (const char *cmd_line UNUSED)
} }
static int static int
syscall_wait (pid_t pid UNUSED) syscall_wait (pid_t pid)
{ {
//TODO return process_wait (pid);
return 0;
} }
static bool static bool