Merge basic system calls with stack set-up infrastructure #27

Merged
td1223 merged 31 commits from user-programs into user-programs-stdout 2024-11-06 22:21:28 +00:00
5 changed files with 189 additions and 124 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