Implement complete stack initialization, process_wait, and all system calls correctly except exec #34

Merged
td1223 merged 46 commits from userprog-merge into master 2024-11-11 22:56:29 +00:00
Showing only changes of commit b112824a64 - Show all commits

View File

@@ -116,10 +116,15 @@ syscall_exit (int status)
} }
static pid_t static pid_t
syscall_exec (const char *cmd_line UNUSED) syscall_exec (const char *cmd_line)
{ {
//TODO validate_user_pointer (cmd_line, 1);
return 0;
lock_acquire (&filesys_lock);
pid_t pid = process_execute(cmd_line);
lock_release (&filesys_lock);
return pid;
} }
static int static int