pc64: cleanup mmuzap
This commit is contained in:
parent
79355486f7
commit
c5214cd6d9
1 changed files with 4 additions and 8 deletions
|
@ -339,17 +339,13 @@ mmuzap(void)
|
||||||
m->mmumap[PTLX(TSTKTOP, 3)/MAPBITS] &= ~(1ull<<(PTLX(TSTKTOP, 3)%MAPBITS));
|
m->mmumap[PTLX(TSTKTOP, 3)/MAPBITS] &= ~(1ull<<(PTLX(TSTKTOP, 3)%MAPBITS));
|
||||||
|
|
||||||
for(i = 0; i < nelem(m->mmumap); pte += MAPBITS, i++){
|
for(i = 0; i < nelem(m->mmumap); pte += MAPBITS, i++){
|
||||||
w = m->mmumap[i];
|
if((w = m->mmumap[i]) == 0)
|
||||||
if(w == 0)
|
|
||||||
continue;
|
continue;
|
||||||
x = 0;
|
m->mmumap[i] = 0;
|
||||||
do {
|
for(x = 0; w != 0; w >>= 1, x++){
|
||||||
if(w & 1)
|
if(w & 1)
|
||||||
pte[x] = 0;
|
pte[x] = 0;
|
||||||
x++;
|
}
|
||||||
w >>= 1;
|
|
||||||
} while(w);
|
|
||||||
m->mmumap[i] = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue