fix: only use lazy loading if VM flag is enabled

This commit is contained in:
Themis Demetriades
2024-12-04 21:33:21 +00:00
parent 1e236a5c47
commit 723055f485
3 changed files with 69 additions and 4 deletions

View File

@@ -215,6 +215,7 @@ page_fault (struct intr_frame *f)
kill (f);
}
#ifdef VM
bool
try_fetch_page (void *upage, bool write)
{
@@ -244,3 +245,5 @@ try_fetch_page (void *upage, bool write)
return success;
}
#endif