git: 9front

Download patch

ref: e647914fba834ffb990607e7b232c240cba1399d
parent: fcb6e41f5990077bcda51d8c369ae23b2fcff0ec
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;
--