riscv/mmu: fix some code typos in hrev57298 that lead to boot failure

Change-Id: If0b2fded13ac079e505038fb51d05f7cfcb3d161
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6953
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
X512
2023-09-25 21:20:56 +00:00
committed by waddlesplash
parent 98895d0417
commit 84a57f9a2d
2 changed files with 2 additions and 2 deletions
@@ -243,7 +243,7 @@ PreallocKernelRange()
Pte* pte = &root[i];
uint64 ppn = mmu_allocate_page() / B_PAGE_SIZE;
if (ppn == 0) panic("can't alloc early physical page");
memset(VirtFromPhys(B_PAGE_SIZE * pte->ppn), 0, B_PAGE_SIZE);
memset(VirtFromPhys(B_PAGE_SIZE * ppn), 0, B_PAGE_SIZE);
Pte newPte {
.isValid = true,
.isGlobal = true,
+1 -1
View File
@@ -228,7 +228,7 @@ PreallocKernelRange()
Pte* pte = &root[i];
uint64 ppn = AllocPhysPage() / B_PAGE_SIZE;
if (ppn == 0) panic("can't alloc early physical page");
memset(VirtFromPhys(B_PAGE_SIZE * pte->ppn), 0, B_PAGE_SIZE);
memset(VirtFromPhys(B_PAGE_SIZE * ppn), 0, B_PAGE_SIZE);
Pte newPte {
.isValid = true,
.isGlobal = true,