Add support for some basic system calls and args handling correctly. #29
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user