Implement the exec system call through process_execute, w/ E

This commit is contained in:
sBubshait
2024-11-08 14:41:27 +00:00
parent dca9d8f5a3
commit b112824a64

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