Merge basic system calls with stack set-up infrastructure #27

Merged
td1223 merged 31 commits from user-programs into user-programs-stdout 2024-11-06 22:21:28 +00:00
5 changed files with 191 additions and 126 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