pc, pc64: add *nomtrr= kernel parameter

This commit is contained in:
cinap_lenrek 2020-12-08 16:34:36 +01:00
parent 263dc8093d
commit b2ffb6ccc5

View file

@ -642,7 +642,7 @@ cpuidentify(void)
} }
#endif #endif
if(m->cpuiddx & Mtrr) if((m->cpuiddx & Mtrr) != 0 && getconf("*nomtrr") == nil)
mtrrsync(); mtrrsync();
if(strcmp(m->cpuidid, "GenuineIntel") == 0 && (m->cpuidcx & Rdrnd) != 0) if(strcmp(m->cpuidid, "GenuineIntel") == 0 && (m->cpuidcx & Rdrnd) != 0)