summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/specialreg.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-03-09 03:30:31 +0000
committeralc <alc@FreeBSD.org>2010-03-09 03:30:31 +0000
commit790da94e62d11167d04896bdb935482cd760524e (patch)
treebaedeaf7bbf9a0b1a57ad2ccaf9a61433f06556c /sys/amd64/include/specialreg.h
parent1fe700c954973387dad8a8bca442eacc4dfda56d (diff)
downloadFreeBSD-src-790da94e62d11167d04896bdb935482cd760524e.zip
FreeBSD-src-790da94e62d11167d04896bdb935482cd760524e.tar.gz
Implement AMD's recommended workaround for Erratum 383 on Family 10h
processors. With this workaround, superpage promotion can be re-enabled under virtualization. Moreover, machine check exceptions can safely be enabled when FreeBSD is running natively on Family 10h processors. Most of the credit should go to Andriy Gapon for diagnosing the error and working with Borislav Petkov at AMD to document it. Andriy also reviewed and tested my patches. Discussed with: jhb MFC after: 3 weeks
Diffstat (limited to 'sys/amd64/include/specialreg.h')
-rw-r--r--sys/amd64/include/specialreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/specialreg.h b/sys/amd64/include/specialreg.h
index 8cadbcd..b325ed4 100644
--- a/sys/amd64/include/specialreg.h
+++ b/sys/amd64/include/specialreg.h
@@ -494,6 +494,8 @@
#define MSR_TOP_MEM 0xc001001a /* boundary for ram below 4G */
#define MSR_TOP_MEM2 0xc001001d /* boundary for ram above 4G */
#define MSR_K8_UCODE_UPDATE 0xc0010020 /* update microcode */
+#define MSR_MC0_CTL_MASK 0xc0010044
+#define MSR_MC1_CTL_MASK 0xc0010045
/* VIA ACE crypto featureset: for via_feature_rng */
#define VIA_HAS_RNG 1 /* cpu has RNG */
OpenPOWER on IntegriCloud