pc64: dont reuse mtrr slots that are above 4GB
we used to override/reuse mtrr slots over 4GB as the kernel wasnt able to use that memory. pc64 can.
This commit is contained in:
parent
fc7f6f8e99
commit
2b4706b662
1 changed files with 1 additions and 2 deletions
|
@ -295,8 +295,7 @@ mtrr(uvlong base, uvlong size, char *tstr)
|
||||||
for(i = 0; i < vcnt; i++){
|
for(i = 0; i < vcnt; i++){
|
||||||
mtrrget(&mtrr, i);
|
mtrrget(&mtrr, i);
|
||||||
mok = mtrrdec(&mtrr, &mp, &msize, &mtype);
|
mok = mtrrdec(&mtrr, &mp, &msize, &mtype);
|
||||||
/* reuse any entry for addresses above 4GB */
|
if(!mok || mp == base && msize == size){
|
||||||
if(!mok || mp == base && msize == size || mp >= (1LL<<32)){
|
|
||||||
slot = i;
|
slot = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue