fix: only use lazy loading if VM flag is enabled
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user