aboutsummaryrefslogtreecommitdiffstats
path: root/src/userprog
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-11-24 01:33:01 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-11-24 01:33:01 +0100
commit431c40e275a5055d9f144de03dbc8cfc90ed3f6e (patch)
treeb311bcda0d5d6b445a123f4be7a2d4f2d756addb /src/userprog
parent0f45ab11bd271535f178b58aab1ae9c36474d995 (diff)
downloadpintos-rs-431c40e275a5055d9f144de03dbc8cfc90ed3f6e.tar.gz
add kernel-rs
Diffstat (limited to 'src/userprog')
-rw-r--r--src/userprog/syscall.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c
index 4d46978..ced27aa 100644
--- a/src/userprog/syscall.c
+++ b/src/userprog/syscall.c
@@ -41,21 +41,21 @@ const int argc[] = {
0
};
-static void
-syscall_handler (struct intr_frame *f)
-{
- int32_t* esp = (int32_t*)f->esp;
-
- switch ( 0 /* retrive syscall number */ )
- {
- default:
- {
- printf ("Executed an unknown system call!\n");
-
- printf ("Stack top + 0: %d\n", esp[0]);
- printf ("Stack top + 1: %d\n", esp[1]);
-
- thread_exit ();
- }
- }
-}
+//static void
+//syscall_handler (struct intr_frame *f)
+//{
+// int32_t* esp = (int32_t*)f->esp;
+//
+// switch ( 0 /* retrive syscall number */ )
+// {
+// default:
+// {
+// printf ("Executed an unknown system call!\n");
+//
+// printf ("Stack top + 0: %d\n", esp[0]);
+// printf ("Stack top + 1: %d\n", esp[1]);
+//
+// thread_exit ();
+// }
+// }
+//}