feat: set accessed bit to allocated frames in page_load and get_usr_kpage

This commit is contained in:
EDiasAlberto
2024-12-05 01:41:23 +00:00
parent f06c91cf0d
commit ac31fb1e1e
2 changed files with 4 additions and 1 deletions

View File

@@ -811,6 +811,7 @@ get_usr_kpage (enum palloc_flags flags, void *upage)
return NULL;
else
page = frame_alloc (flags, upage, t);
pagedir_set_accessed (t->pagedir, upage, true);
#else
page = palloc_get_page (flags | PAL_USER);
#endif