- Timestamp:
- Aug 3, 2007 12:54:43 AM (17 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r3888 r4016 241 241 vboxdrv_LIBS = $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 242 242 vboxdrv_SOURCES = \ 243 $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c 244 #SUPDRVShared.c243 $(BUILD_TARGET)/SUPDrv-$(BUILD_TARGET).c \ 244 SUPDRVShared.c 245 245 endif # freebsd 246 246 -
trunk/src/VBox/HostDrivers/Support/SUPDRV.h
r3888 r4016 196 196 197 197 /* dprintf */ 198 #if defined(DEBUG) && !defined(NO_LOGGING)198 #if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(RT_OS_FREEBSD) 199 199 # ifdef LOG_TO_COM 200 200 # include <VBox/log.h> … … 208 208 209 209 /* dprintf2 - extended logging. */ 210 #if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) 210 #if defined(RT_OS_DARWIN) || defined(RT_OS_OS2) || defined(RT_OS_FREEBSD) 211 211 # define dprintf2 dprintf 212 212 #else -
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r3677 r4016 54 54 55 55 56 57 56 /******************************************************************************* 58 57 * Internal Functions * … … 107 106 static PSUPDRVSESSION g_apSessionHashTab[19]; 108 107 /** Calculates the index into g_apSessionHashTab.*/ 109 #define SESSION_HASH(sfn) ((sfn) % RT_ELEMENTS(g_apSessionHashTab))108 #define SESSION_HASH(sfn) ((sfn) % RT_ELEMENTS(g_apSessionHashTab)) 110 109 111 110 … … 159 158 * Initialize the device extension. 160 159 */ 161 /// @todorc = supdrvInitDevExt(&g_DevExt);160 rc = supdrvInitDevExt(&g_DevExt); 162 161 if (RT_SUCCESS(rc)) 163 162 { … … 191 190 else 192 191 printf("vboxdrv: RTSpinlockCreate failed, rc=%d\n", rc); 193 /// @todosupdrvDeleteDevExt(&g_DevExt);192 supdrvDeleteDevExt(&g_DevExt); 194 193 } 195 194 else … … 218 217 } 219 218 220 rc = 0; /// @todosupdrvDeleteDevExt(&g_DevExt);219 rc = supdrvDeleteDevExt(&g_DevExt); 221 220 AssertRC(rc); 222 221 … … 240 239 } 241 240 241 242 242 static int VBoxDrvFreeBSDClose(struct cdev *dev, int fflag, int devtype, struct thread *td) 243 243 { … … 245 245 return EBADF; 246 246 } 247 247 248 248 249 static int VBoxDrvFreeBSDIOCtl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) … … 278 279 } 279 280 281 282 void VBOXCALL supdrvOSObjInitCreator(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession) 283 { 284 NOREF(pObj); 285 NOREF(pSession); 286 } 287 288 289 bool VBOXCALL supdrvOSObjCanAccess(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession, const char *pszObjName, int *prc) 290 { 291 NOREF(pObj); 292 NOREF(pSession); 293 NOREF(pszObjName); 294 NOREF(prc); 295 return false; 296 } 297 298 299 SUPR0DECL(int) SUPR0Printf(const char *pszFormat, ...) 300 { 301 va_list va; 302 char szMsg[256]; 303 int cch; 304 305 va_start(va, pszFormat); 306 cch = RTStrPrintfV(szMsg, sizeof(szMsg), pszFormat, va); 307 va_end(va); 308 309 printf("%s", szMsg); 310 311 return cch; 312 } 313
Note:
See TracChangeset
for help on using the changeset viewer.