Differential D28871 Diff 85283 emulators/virtualbox-ose/files/patch-src_VBox_HostDrivers_Support_SUPDrv.cpp
Changeset View
Changeset View
Standalone View
Standalone View
emulators/virtualbox-ose/files/patch-src_VBox_HostDrivers_Support_SUPDrv.cpp
--- src/VBox/HostDrivers/Support/SUPDrv.cpp.orig 2018-10-15 14:30:56 UTC | --- src/VBox/HostDrivers/Support/SUPDrv.cpp.orig 2018-10-15 14:30:56 UTC | ||||
+++ src/VBox/HostDrivers/Support/SUPDrv.cpp | +++ src/VBox/HostDrivers/Support/SUPDrv.cpp | ||||
@@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||||
/** @def SUPDRV_CHECK_SMAP_CHECK | /** @def SUPDRV_CHECK_SMAP_CHECK | ||||
* Checks that the AC flag is set if SMAP is enabled. If AC is not set, it | * Checks that the AC flag is set if SMAP is enabled. If AC is not set, it | ||||
* will be logged and @a a_BadExpr is executed. */ | * will be logged and @a a_BadExpr is executed. */ | ||||
-#if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) | -#if (defined(RT_OS_DARWIN) || defined(RT_OS_LINUX)) && !defined(VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV) | ||||
+#if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX) | +#if (defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX)) && !defined(VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV) | ||||
# define SUPDRV_CHECK_SMAP_SETUP() uint32_t const fKernelFeatures = SUPR0GetKernelFeatures() | # define SUPDRV_CHECK_SMAP_SETUP() uint32_t const fKernelFeatures = SUPR0GetKernelFeatures() | ||||
# define SUPDRV_CHECK_SMAP_CHECK(a_pDevExt, a_BadExpr) \ | # define SUPDRV_CHECK_SMAP_CHECK(a_pDevExt, a_BadExpr) \ | ||||
do { \ | do { \ |