ref: b2ffb6ccc5a5a4fcc996cc5db14ea7e2da13a411
parent: 263dc8093d7eeece36160515b3a4f76a95352050
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Dec 8 11:34:36 EST 2020
pc, pc64: add *nomtrr= kernel parameter
--- a/sys/src/9/pc/devarch.c
+++ b/sys/src/9/pc/devarch.c
@@ -642,7 +642,7 @@
}
#endif
- if(m->cpuiddx & Mtrr)
+ if((m->cpuiddx & Mtrr) != 0 && getconf("*nomtrr") == nil)
mtrrsync();
if(strcmp(m->cpuidid, "GenuineIntel") == 0 && (m->cpuidcx & Rdrnd) != 0)