Merge basic system calls with stack set-up infrastructure #27
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user