mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
mmu: fix newtable() pointer
This commit is contained in:
@@ -153,7 +153,7 @@ pagetableptr_t arch_mmu_newtable() {
|
|||||||
pagetableptr_t table = pmm_alloc(1, PMM_SECTION_DEFAULT);
|
pagetableptr_t table = pmm_alloc(1, PMM_SECTION_DEFAULT);
|
||||||
if (table == NULL)
|
if (table == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
memcpy(table, template, PAGE_SIZE);
|
memcpy(MAKE_HHDM(table), template, PAGE_SIZE);
|
||||||
return table;
|
return table;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user