Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/virtualbox-ose/files/patch-include-iprt-x86.h
17383 views
1
--- include/iprt/x86.h.orig 2021-04-20 04:22:23 UTC
2
+++ include/iprt/x86.h
3
@@ -38,6 +38,16 @@
4
# pragma D depends_on library vbox-types.d
5
#endif
6
7
+/* Workaround for FreeBSD machine/specialreg.h defining MSRs */
8
+#ifdef RT_OS_FREEBSD
9
+# undef MSR_P5_MC_ADDR
10
+# undef MSR_P5_MC_TYPE
11
+# undef MSR_IA32_PLATFORM_ID
12
+# undef MSR_BBL_CR_CTL3
13
+# undef MSR_IA32_MISC_ENABLE
14
+# undef MSR_IA32_FEATURE_CONTROL
15
+#endif
16
+
17
/** Workaround for Solaris sys/regset.h defining CS, DS and sys/controlregs.h
18
* defining MSR_IA32_FLUSH_CMD */
19
#ifdef RT_OS_SOLARIS
20
21