Add support for some basic system calls and args handling correctly. #29

Merged
sb3923 merged 49 commits from system-calls into master 2024-11-07 19:36:30 +00:00
5 changed files with 197 additions and 18 deletions
Showing only changes of commit e9c4061531 - Show all commits

View File

@@ -99,9 +99,12 @@ halt (void)
}
static void
exit (int status UNUSED)
exit (int status)
{
//TODO
/* Sets exit_status of the thread to status. thread_exit () will call
process_exit () if user programs are allowed. */
thread_current ()->exit_status = status;
thread_exit ();
}
static pid_t