projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve basic alarm clock test.
[pintos-anon]
/
src
/
userprog
/
syscall.c
diff --git
a/src/userprog/syscall.c
b/src/userprog/syscall.c
index 6084726f607506aa97a137c98303dc9732364a8d..db67593b4d910e223e8ec645b78942895c9232af 100644
(file)
--- 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 <stdio.h>
+#include <syscall-nr.h>
+#include "threads/interrupt.h"
+#include "threads/thread.h"
static void syscall_handler (struct intr_frame *);
static void syscall_handler (struct intr_frame *);
@@
-12,8
+13,8
@@
syscall_init (void)
}
static void
}
static void
-syscall_handler (struct intr_frame *f)
+syscall_handler (struct intr_frame *f
UNUSED
)
{
{
- print
k
("system call!\n");
+ print
f
("system call!\n");
thread_exit ();
}
thread_exit ();
}