diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-31 14:32:19 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-31 14:32:19 +0200 |
commit | 30bf1c45cac396a3b9637cfe40cb1bba4ebca7a9 (patch) | |
tree | 9292a746eed508a35fd990024a4a1eab19e9384b /sys/src/9/pc/devarch.c | |
parent | 5cd7f7b0ec0df483bb5fd768ed59829e44849ed3 (diff) |
pc, xen: make PAT support optional (for xen)
Diffstat (limited to 'sys/src/9/pc/devarch.c')
-rw-r--r-- | sys/src/9/pc/devarch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/devarch.c b/sys/src/9/pc/devarch.c index 595cbcb8b..d637d5aa3 100644 --- a/sys/src/9/pc/devarch.c +++ b/sys/src/9/pc/devarch.c @@ -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(); |