Fix Bug: Initialise the mmap table for the newly created thread rather than the current thread

This commit is contained in:
sBubshait
2024-12-04 17:41:14 +00:00
parent 67f16cb2a6
commit 72fa0c1bbb
3 changed files with 5 additions and 5 deletions

View File

@@ -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);