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:
cinap_lenrek 2014-02-07 20:04:19 +01:00
parent fc7f6f8e99
commit 2b4706b662

View file

@ -295,8 +295,7 @@ mtrr(uvlong base, uvlong size, char *tstr)
for(i = 0; i < vcnt; i++){
mtrrget(&mtrr, i);
mok = mtrrdec(&mtrr, &mp, &msize, &mtype);
/* reuse any entry for addresses above 4GB */
if(!mok || mp == base && msize == size || mp >= (1LL<<32)){
if(!mok || mp == base && msize == size){
slot = i;
break;
}