Skip to content
Snippets Groups Projects
Commit 325d5de0 authored by s2-alsaloumi's avatar s2-alsaloumi
Browse files

added System Call HALT function

parent 4bbae040
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,15 @@ syscall_handler (struct intr_frame *f)
memread_user(f->esp, &syscall_number, sizeof(syscall_number));
switch (syscall_number) {
case SYS_HALT:{
//Alsaloumi
// pintos -p ../examples/halt -a halt -- -q
// pintos -q run 'halt'
shutdown_power_off();
break;
}
case SYS_TELL:
{
int fd;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment