Update page_load to create and use the shared read-only pages of executables, w/ G

This commit is contained in:
sBubshait
2024-11-30 01:54:10 +00:00
parent f4910bdefb
commit 0b08893aaf
3 changed files with 49 additions and 8 deletions

View File

@@ -134,9 +134,12 @@ thread_start (void)
t))
PANIC ("Failed to initialise child results table for main thread.");
/* Initialise the shared files table and lock. */
if (!hash_init (&shared_files, shared_file_hash, shared_file_less, NULL))
PANIC ("Failed to initialise shared pages table.");
lock_init (&shared_files_lock);
/* Create the idle thread. */
struct semaphore idle_started;
sema_init (&idle_started, 0);