projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make lookup_page() just return null for uaddr >= PHYS_BASE.
[pintos-anon]
/
src
/
userprog
/
syscall.c
diff --git
a/src/userprog/syscall.c
b/src/userprog/syscall.c
index e6dfe94fb354b6162e92eb4c3b79719103426d43..7f758c617d8089fd664cafba0d7973ae9ccc5e57 100644
(file)
--- 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 <stdio.h>
+#include <syscall-nr.h>
#include "threads/interrupt.h"
#include "threads/thread.h"
#include "threads/interrupt.h"
#include "threads/thread.h"
@@
-14,6
+15,6
@@
syscall_init (void)
static void
syscall_handler (struct intr_frame *f)
{
static void
syscall_handler (struct intr_frame *f)
{
- print
k
("system call!\n");
+ print
f
("system call!\n");
thread_exit ();
}
thread_exit ();
}