X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Fsyscall.c;h=7f758c617d8089fd664cafba0d7973ae9ccc5e57;hb=fef65438e51112497cdcd62aca2dc22dd1565ca3;hp=6084726f607506aa97a137c98303dc9732364a8d;hpb=8d321fddc6a25651e7fccacfe46b0ff1c4e52501;p=pintos-anon diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index 6084726..7f758c6 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -1,7 +1,8 @@ -#include "syscall.h" -#include "lib.h" -#include "interrupt.h" -#include "thread.h" +#include "userprog/syscall.h" +#include +#include +#include "threads/interrupt.h" +#include "threads/thread.h" static void syscall_handler (struct intr_frame *); @@ -14,6 +15,6 @@ syscall_init (void) static void syscall_handler (struct intr_frame *f) { - printk ("system call!\n"); + printf ("system call!\n"); thread_exit (); }