Add SPT Helper Functions: Insert, Get, Cleanup w/ G

This commit is contained in:
sBubshait
2024-11-28 18:18:41 +00:00
parent 14fc96febf
commit 97e6e0fb1e
3 changed files with 57 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
#include "threads/vaddr.h"
#include "threads/synch.h"
#include "devices/timer.h"
#include "vm/page.h"
#ifdef VM
#include "vm/frame.h"
#endif
@@ -364,6 +365,7 @@ process_exit (void)
/* Clean up all open files */
hash_destroy (&cur->open_files, fd_cleanup);
hash_destroy (&cur->pages, page_cleanup);
/* Close the executable file, implicitly allowing it to be written to. */
if (cur->exec_file != NULL)