From 92a627d097dea80c7d1bb53e2d59d2ac96183a6f Mon Sep 17 00:00:00 2001 From: a3-alsayed <aisha2.alsayed@live.uwe.ac.uk> Date: Tue, 10 Jan 2023 03:47:48 +0000 Subject: [PATCH] Update src/userprog/syscall.h --- src/userprog/syscall.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/userprog/syscall.h b/src/userprog/syscall.h index 9059096..6d65743 100644 --- a/src/userprog/syscall.h +++ b/src/userprog/syscall.h @@ -1,6 +1,20 @@ #ifndef USERPROG_SYSCALL_H #define USERPROG_SYSCALL_H - -void syscall_init (void); - +// #include "userprog/syscall.h" +#include <stdio.h> +#include <syscall-nr.h> +#include "threads/interrupt.h" +#include "threads/thread.h" +#include "process.h" +#include "pagedir.h" +#include "threads/vaddr.h" +#include "devices/shutdown.h" +#include "filesys/filesys.h" +// import system calls declaration +#include "user/syscall.h" +// for the input function +#include "devices/input.h" +#include "threads/synch.h" +// lock for thread synchronization +struct lock mainLock;void syscall_init (void); #endif /* userprog/syscall.h */ -- GitLab