Changeset 3677 in vbox for trunk/src/VBox
- Timestamp:
- Jul 18, 2007 4:30:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
r3626 r3677 153 153 * Initialize the runtime. 154 154 */ 155 int rc = VINF_SUCCESS;/// @todoRTR0Init(0);155 int rc = RTR0Init(0); 156 156 if (RT_SUCCESS(rc)) 157 157 { … … 165 165 * Initialize the session hash table. 166 166 */ 167 /// @todorc = RTSpinlockCreate(&g_Spinlock);167 rc = RTSpinlockCreate(&g_Spinlock); 168 168 if (RT_SUCCESS(rc)) 169 169 { … … 186 186 printf("vboxdrv: make_dev failed\n"); 187 187 rc = SUPDRV_ERR_ALREADY_LOADED; 188 RTSpinlockDestroy(g_Spinlock); 189 g_Spinlock = NIL_RTSPINLOCK; 188 190 } 189 191 else … … 193 195 else 194 196 printf("vboxdrv: supdrvInitDevExt failed, rc=%d\n", rc); 195 /// @todoRTR0Term();197 RTR0Term(); 196 198 } 197 199 else … … 217 219 218 220 rc = 0; /// @todo supdrvDeleteDevExt(&g_DevExt); 219 /// @todoAssertRC(rc);220 221 /// @todorc = RTSpinlockDestroy(g_Spinlock);222 /// @todoAssertRC(rc);221 AssertRC(rc); 222 223 rc = RTSpinlockDestroy(g_Spinlock); 224 AssertRC(rc); 223 225 g_Spinlock = NIL_RTSPINLOCK; 224 226 225 /// @todoRTR0Term();227 RTR0Term(); 226 228 227 229 memset(&g_DevExt, 0, sizeof(g_DevExt));
Note:
See TracChangeset
for help on using the changeset viewer.