mmu: fix newtable() pointer

This commit is contained in:
Matheus
2023-04-15 20:22:27 -03:00
parent 0fad94f43e
commit bbd6d371c7
+1 -1
View File
@@ -153,7 +153,7 @@ pagetableptr_t arch_mmu_newtable() {
pagetableptr_t table = pmm_alloc(1, PMM_SECTION_DEFAULT);
if (table == NULL)
return NULL;
memcpy(table, template, PAGE_SIZE);
memcpy(MAKE_HHDM(table), template, PAGE_SIZE);
return table;
}