mtrr: fix mistake
This commit is contained in:
parent
7af85b9e74
commit
43212f6432
|
@ -295,7 +295,7 @@ mtrr(uvlong base, uvlong size, char *tstr)
|
|||
for(i = 0; i < vcnt; i++){
|
||||
mtrrget(&mtrr, i);
|
||||
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 */
|
||||
if(mok && mp == base && msize == size){
|
||||
slot = i;
|
||||
|
|
Loading…
Reference in a new issue