Changeset 19592 in vbox for trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
- Timestamp:
- May 11, 2009 11:21:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.