aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/amd.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-11-04 16:35:58 +0000
committerKeir Fraser <keir@xen.org>2010-11-04 16:35:58 +0000
commitc8bb5635dea2d4fa46a2e513e5bca1c646fa622d (patch)
tree7e54ac5cf0bfe2e578152a67f82246232efa71b7 /xen/include/asm-x86/amd.h
parent769bd508c350479fe29824a47d4e8331ee1e260a (diff)
downloadxen-c8bb5635dea2d4fa46a2e513e5bca1c646fa622d.tar.gz
xen-c8bb5635dea2d4fa46a2e513e5bca1c646fa622d.tar.bz2
xen-c8bb5635dea2d4fa46a2e513e5bca1c646fa622d.zip
x86-64: enable MMCONFIG on AMD Fam10 systems even if the BIOS didn't
Code for this has been in Linux since 2.6.26, and since Xen itself wants to use the MMCONFIG access method when possible, clone it (fixing some rather obvious bugs in that code at once). Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/amd.h')
-rw-r--r--xen/include/asm-x86/amd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/asm-x86/amd.h b/xen/include/asm-x86/amd.h
index c38984f553..9868a2f2ff 100644
--- a/xen/include/asm-x86/amd.h
+++ b/xen/include/asm-x86/amd.h
@@ -134,5 +134,12 @@
AMD_OSVW_ERRATUM(3, AMD_MODEL_RANGE(0x10, 0x2, 0x1, 0xff, 0xf), \
AMD_MODEL_RANGE(0x12, 0x0, 0x0, 0x1, 0x0))
+struct cpuinfo_x86;
int cpu_has_amd_erratum(const struct cpuinfo_x86 *, int, ...);
+
+#ifdef __x86_64__
+void fam10h_check_enable_mmcfg(void);
+void check_enable_amd_mmconf_dmi(void);
+#endif
+
#endif /* __AMD_H__ */