Combine syscall code with final stack initialization code #32

Merged
td1223 merged 27 commits from read-only-exec into userprog-merge 2024-11-11 22:23:20 +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