ref: 47d3e8fc6394dac68e0cec8ef5f74534cfb68747
parent: 704970074edd7280c8839ca3074e15c4dc07a1ac
author: cinap_lenrek <[email protected]>
date: Wed May 15 09:24:34 EDT 2019
bcm64: fix mmu0clear() mistake from previous commit
--- a/sys/src/9/bcm64/mmu.c
+++ b/sys/src/9/bcm64/mmu.c
@@ -53,7 +53,6 @@
pe = PHYSDRAM + soc.dramsize;
- if(PTLEVELS > 3)
for(pa = PHYSDRAM, va = KZERO; pa < pe; pa += PGLSZ(1), va += PGLSZ(1)){
if(PTL1X(pa, 1) != PTL1X(va, 1))
l1[PTL1X(pa, 1)] = 0;
@@ -63,6 +62,7 @@
if(PTL1X(pa, 2) != PTL1X(va, 2))
l1[PTL1X(pa, 2)] = 0;
}
+ if(PTLEVELS > 3)
for(pa = PHYSDRAM, va = KZERO; pa < pe; pa += PGLSZ(3), va += PGLSZ(3)){
if(PTL1X(pa, 3) != PTL1X(va, 3))
l1[PTL1X(pa, 3)] = 0;