Update SPT page entry to change type from EXECUTABLE to PAGE_FILE to capture mmaps in addition to executables

This commit is contained in:
sBubshait
2024-12-04 17:51:30 +00:00
parent ad6e4b4059
commit 941e1e067a
5 changed files with 8 additions and 24 deletions

View File

@@ -194,7 +194,7 @@ try_fetch_page (void *upage, bool write)
/* Load the page into memory based on the type of data it is expecting. */
bool success = false;
switch (page->type) {
case PAGE_EXECUTABLE:
case PAGE_FILE:
success = page_load (page, page->writable);
break;
default: