bcm64: fix mmu0clear() mistake from previous commit
This commit is contained in:
parent
704970074e
commit
47d3e8fc63
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,6 @@ mmu0clear(uintptr *l1)
|
|||
|
||||
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 @@ mmu0clear(uintptr *l1)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue