Fix Bug: Initialise the mmap table for the newly created thread rather than the current thread
This commit is contained in:
@@ -17,7 +17,7 @@ struct mmap_entry {
|
||||
struct hash_elem elem; /* An elem for the hash table. */
|
||||
};
|
||||
|
||||
bool mmap_init (void);
|
||||
bool mmap_init (struct thread *t);
|
||||
struct mmap_entry *mmap_insert (struct file *file, void *upage);
|
||||
void mmap_destroy (void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user