Update start_process to acquire filesys lock when loading user process file

This commit is contained in:
Themis Demetriades
2024-11-12 14:21:33 +00:00
parent 7d9900c6d8
commit a69b9c808e
5 changed files with 14 additions and 9 deletions

View File

@@ -2,11 +2,14 @@
#define USERPROG_SYSCALL_H
#include <hash.h>
#include "threads/synch.h"
#define MIN_USER_FD 2
typedef int pid_t;
struct lock filesys_lock;
void syscall_init (void);
unsigned fd_hash (const struct hash_elem *element, void *aux);