X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Fsyscall.c;h=7f758c617d8089fd664cafba0d7973ae9ccc5e57;hb=592a61ce0fad1854d446b1bdbdc7962bfa868bc2;hp=e6dfe94fb354b6162e92eb4c3b79719103426d43;hpb=f6580e9ad405b519dbe85027691bf3c66074b0a4;p=pintos-anon diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index e6dfe94..7f758c6 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -1,5 +1,6 @@ -#include "syscall.h" -#include "lib/lib.h" +#include "userprog/syscall.h" +#include +#include #include "threads/interrupt.h" #include "threads/thread.h" @@ -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 (); }