mtrr: fix mistake

This commit is contained in:
cinap_lenrek 2014-02-08 03:40:17 +01:00
parent 7af85b9e74
commit 43212f6432

View file

@ -295,7 +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);
if(slot == -1 && !mok || mtype == (def & Deftype)) if(slot == -1 && (!mok || mtype == (def & Deftype)))
slot = i; /* good, but look further for exact match */ slot = i; /* good, but look further for exact match */
if(mok && mp == base && msize == size){ if(mok && mp == base && msize == size){
slot = i; slot = i;