Explain that multiple file descriptors for a single file are
[pintos.git] / src / userprog / syscall.c
blob370c89b10f90501a4684c604ddbff9503481cf7a
1 #include "userprog/syscall.h"
2 #include <stdio.h>
3 #include <syscall-nr.h>
4 #include "threads/interrupt.h"
5 #include "threads/thread.h"
7 static void syscall_handler (struct intr_frame *);
9 void
10 syscall_init (void)
12 intr_register_int (0x30, 3, INTR_ON, syscall_handler, "syscall");
15 static void
16 syscall_handler (struct intr_frame *f UNUSED)
18 printf ("system call!\n");
19 thread_exit ();