Comments.
[pintos-anon] / src / userprog / syscall.c
index e6dfe94fb354b6162e92eb4c3b79719103426d43..db67593b4d910e223e8ec645b78942895c9232af 100644 (file)
@@ -1,5 +1,6 @@
-#include "syscall.h"
-#include "lib/lib.h"
+#include "userprog/syscall.h"
+#include <stdio.h>
+#include <syscall-nr.h>
 #include "threads/interrupt.h"
 #include "threads/thread.h"
 
@@ -12,8 +13,8 @@ syscall_init (void)
 }
 
 static void
-syscall_handler (struct intr_frame *f) 
+syscall_handler (struct intr_frame *f UNUSED
 {
-  printk ("system call!\n");
+  printf ("system call!\n");
   thread_exit ();
 }