ref: 43212f64320c2e136eb3d4adb5d3e8c31c637386
parent: 7af85b9e74ab055d55ad20ce8dd6d9caf002d525
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 7 22:40:17 EST 2014
mtrr: fix mistake
--- a/sys/src/9/pc/mtrr.c
+++ b/sys/src/9/pc/mtrr.c
@@ -295,7 +295,7 @@
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;