changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: bcm64: fix mmu0clear() mistake from previous commit

changeset 7238: 9fe2319844b6
parent 7237: 667b41a48d2f
child 7239: c0e23a8829f7
author: cinap_lenrek@felloff.net
date: Wed, 15 May 2019 13:24:34 +0200
files: sys/src/9/bcm64/mmu.c
description: bcm64: fix mmu0clear() mistake from previous commit
     1.1--- a/sys/src/9/bcm64/mmu.c
     1.2+++ b/sys/src/9/bcm64/mmu.c
     1.3@@ -53,7 +53,6 @@ mmu0clear(uintptr *l1)
     1.4 
     1.5 	pe = PHYSDRAM + soc.dramsize;
     1.6 
     1.7-	if(PTLEVELS > 3)
     1.8 	for(pa = PHYSDRAM, va = KZERO; pa < pe; pa += PGLSZ(1), va += PGLSZ(1)){
     1.9 		if(PTL1X(pa, 1) != PTL1X(va, 1))
    1.10 			l1[PTL1X(pa, 1)] = 0;
    1.11@@ -63,6 +62,7 @@ mmu0clear(uintptr *l1)
    1.12 		if(PTL1X(pa, 2) != PTL1X(va, 2))
    1.13 			l1[PTL1X(pa, 2)] = 0;
    1.14 	}
    1.15+	if(PTLEVELS > 3)
    1.16 	for(pa = PHYSDRAM, va = KZERO; pa < pe; pa += PGLSZ(3), va += PGLSZ(3)){
    1.17 		if(PTL1X(pa, 3) != PTL1X(va, 3))
    1.18 			l1[PTL1X(pa, 3)] = 0;