Skip to content
Snippets Groups Projects
Commit ca43d8ce authored by m2-almarri's avatar m2-almarri
Browse files

Update syscall.c added halt

parent 042a2933
No related branches found
No related tags found
No related merge requests found
......@@ -17,5 +17,12 @@ static void
syscall_handler (struct intr_frame *f UNUSED)
{
printf ("system call!\n");
int syscall_nr=-1;
switch(sysCall) {
case SYS_HALT:{
printf ("system call, halt\n");
shutdown_power_off();
break;
}
thread_exit ();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment