summaryrefslogtreecommitdiff
path: root/emulators/virtualbox-ose-72/files/patch-include-iprt-x86.h
blob: cedf78a0ef0228dd273895690e9145246e0d51af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- include/iprt/x86.h.orig	2025-08-13 19:37:26 UTC
+++ include/iprt/x86.h
@@ -53,6 +53,16 @@
 # pragma D depends_on library vbox-types.d
 #endif
 
+/* Workaround for FreeBSD machine/specialreg.h defining MSRs */
+#ifdef RT_OS_FREEBSD
+# undef MSR_P5_MC_ADDR
+# undef MSR_P5_MC_TYPE
+# undef MSR_IA32_PLATFORM_ID
+# undef MSR_BBL_CR_CTL3
+# undef MSR_IA32_MISC_ENABLE
+# undef MSR_IA32_FEATURE_CONTROL
+#endif
+
 /** Workaround for Solaris sys/regset.h defining CS, DS and sys/controlregs.h
  * defining MSR_IA32_FLUSH_CMD and MSR_AMD_VIRT_SPEC_CTL */
 #ifdef RT_OS_SOLARIS