vmm: fix vmm_getphysical

This commit is contained in:
Matheus
2024-08-10 22:42:05 -03:00
parent d310764085
commit dfb75e78fc
+1 -1
View File
@@ -448,7 +448,7 @@ void *vmm_getphysical(void *addr) {
void *physical = arch_mmu_getphysical(_cpu()->vmmctx->pagetable, addr);
MUTEX_RELEASE(&space->lock);
return physical;
return physical + ((uintptr_t)addr - ROUND_DOWN((uintptr_t)addr, PAGE_SIZE));
}