shithub: riscv

Download patch

ref: 6f15a730f351b75f24286cb937a96db1ee9e5b82
parent: 9cca88895e31c73d4d0793dd83f76ebd24456cdd
parent: 6cc223ee56e5f0aa20dfc6f51b70607b5b14cf5f
author: cinap_lenrek <[email protected]>
date: Wed Nov 4 18:09:47 EST 2020

merge

--- a/sys/src/9/pc/mtrr.c
+++ b/sys/src/9/pc/mtrr.c
@@ -292,7 +292,7 @@
 	slot = -1;
 	for(i = 0; i < vcnt; i++){
 		mok = mtrrdec(&mtrreg[i], &mp, &msize, &mtype);
-		if(slot == -1 && (!mok || mtype == (def & Deftype)))
+		if(slot == -1 && !mok)
 			slot = i;	/* good, but look further for exact match */
 		if(mok && mp == base && msize == size){
 			slot = i;