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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user