- Timestamp:
- May 11, 2009 11:21:13 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r19454 r19592 49 49 #include <VBox/log.h> 50 50 #include <VBox/err.h> 51 #if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) 51 #if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) 52 52 # include <iprt/crc32.h> 53 53 # include <iprt/net.h> … … 427 427 }; 428 428 429 #if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) 429 #if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) 430 430 /** 431 431 * Drag in the rest of IRPT since we share it with the … … 446 446 NULL 447 447 }; 448 #endif /* RT_OS_DARWIN || RT_OS_SOLARIS */448 #endif /* RT_OS_DARWIN || RT_OS_SOLARIS || RT_OS_SOLARIS */ 449 449 450 450 -
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r19563 r19592 44 44 #include <sys/conf.h> 45 45 #include <sys/uio.h> 46 #include <sys/proc.h> 47 #include <sys/sched.h> 46 48 47 49 #include "../SUPDrvInternal.h" … … 117 119 static SUPDRVDEVEXT g_VBoxDrvFreeBSDDevExt; 118 120 119 /** Just a dummy global structure containing a bunch of120 * function pointers to code which is wanted in the link.121 */122 static PFNRT g_apfnVBoxDrvFreeBSDDeps[] =123 {124 /* Needed for vboxnetflt. */125 (PFNRT)RTUuidFromStr,126 (PFNRT)RTUuidCompareStr,127 NULL128 };129 130 121 /** 131 122 * Module event handler. … … 405 396 || ulCmd == SUP_IOCTL_FAST_DO_HWACC_RUN 406 397 || ulCmd == SUP_IOCTL_FAST_DO_NOP) 407 return supdrvIOCtlFast(ulCmd, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession); 398 { 399 sched_pin(); 400 critical_enter(); 401 int rc = supdrvIOCtlFast(ulCmd, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession); 402 critical_exit(); 403 sched_unpin(); 404 return rc; 405 } 408 406 409 407 return VBoxDrvFreeBSDIOCtlSlow(pSession, ulCmd, pvData, pTd); -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r19462 r19592 619 619 STAM_COUNTER_INC(&pVM->vmm.s.StatRunRC); 620 620 621 #if ndef RT_OS_WINDOWS/** @todo check other hosts */621 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_FREEBSD) /** @todo check other hosts */ 622 622 RTCCUINTREG uFlags = ASMIntDisableFlags(); 623 623 #endif … … 642 642 643 643 ASMAtomicWriteU32(&pVCpu->idHostCpu, NIL_RTCPUID); 644 #if ndef RT_OS_WINDOWS/** @todo check other hosts */644 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_FREEBSD) /** @todo check other hosts */ 645 645 ASMSetFlags(uFlags); 646 646 #endif
Note:
See TracChangeset
for help on using the changeset viewer.