vmm: copy on write and changes to how page faults are handled

This commit is contained in:
Matheus
2023-08-02 01:18:35 -03:00
parent 55fc1b7026
commit 7e1443d032
4 changed files with 57 additions and 10 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ void pmm_init() {
pages = MAKE_HHDM((page_t *)biggest->base);
pagecount = ROUND_UP(top, PAGE_SIZE) / PAGE_SIZE;
memset(pages, 0, pagecount / sizeof(page_t));
memset(pages, 0, pagecount * sizeof(page_t));
printf("pmm: %d pages used for page list\n", ROUND_UP(pagecount * sizeof(page_t), PAGE_SIZE) / PAGE_SIZE);
// place pages in free lists