mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 15:38:22 +00:00
vmm: fix vmm_getphysical
This commit is contained in:
+1
-1
@@ -448,7 +448,7 @@ void *vmm_getphysical(void *addr) {
|
|||||||
void *physical = arch_mmu_getphysical(_cpu()->vmmctx->pagetable, addr);
|
void *physical = arch_mmu_getphysical(_cpu()->vmmctx->pagetable, addr);
|
||||||
|
|
||||||
MUTEX_RELEASE(&space->lock);
|
MUTEX_RELEASE(&space->lock);
|
||||||
return physical;
|
return physical + ((uintptr_t)addr - ROUND_DOWN((uintptr_t)addr, PAGE_SIZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user