mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
vmm: fix lazy allocation
This commit is contained in:
+1
-1
@@ -322,7 +322,7 @@ bool vmm_pagefault(void *addr, bool user, int actions) {
|
|||||||
void *paddr = pmm_alloc(1, PMM_SECTION_DEFAULT);
|
void *paddr = pmm_alloc(1, PMM_SECTION_DEFAULT);
|
||||||
__assert(paddr); // XXX handle these better than an assert once there are signals and such
|
__assert(paddr); // XXX handle these better than an assert once there are signals and such
|
||||||
__assert(arch_mmu_map(_cpu()->vmmctx->pagetable, paddr, addr, range->mmuflags));
|
__assert(arch_mmu_map(_cpu()->vmmctx->pagetable, paddr, addr, range->mmuflags));
|
||||||
memset(addr, 0, PAGE_SIZE);
|
memset(MAKE_HHDM(paddr), 0, PAGE_SIZE);
|
||||||
status = true;
|
status = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user