From e40beeb936ff887afa9603c93aa804a4e5b4c7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 21 Feb 2021 20:16:10 +0100 Subject: actually call process_execute --- src/userprog/syscall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index 65ebc7e..0df46f4 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -9,6 +9,7 @@ #include "filesys/filesys.h" #include "filesys/off_t.h" #include "lib/pid_t.h" +#include "userprog/process.h" #include "threads/init.h" #include "threads/malloc.h" @@ -144,9 +145,9 @@ close (int fd_i) } static pid_t -exec (const char *file_name UNUSED) +exec (const char *file_name) { - return -1; + return process_execute (file_name); } // cast to TYPE and deref argument N from f->esp -- cgit v1.2.1