pc, xen: make PAT support optional (for xen)
This commit is contained in:
parent
5cd7f7b0ec
commit
30bf1c45ca
1 changed files with 2 additions and 0 deletions
|
@ -882,12 +882,14 @@ cpuidentify(void)
|
|||
rdmsr(0x01, &mct);
|
||||
}
|
||||
|
||||
#ifdef PATWC
|
||||
/* IA32_PAT write combining */
|
||||
if((m->cpuiddx & Pat) != 0 && rdmsr(0x277, &pat) != -1){
|
||||
pat &= ~(255LL<<(PATWC*8));
|
||||
pat |= 1LL<<(PATWC*8); /* WC */
|
||||
wrmsr(0x277, pat);
|
||||
}
|
||||
#endif
|
||||
|
||||
if(m->cpuiddx & Mtrr)
|
||||
mtrrsync();
|
||||
|
|
Loading…
Reference in a new issue