VirtualBox

Changeset 3677 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 18, 2007 4:30:17 AM (18 years ago)
Author:
vboxsync
Message:

Implemented some more FreeBSD ring-0 driver code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c

    r3626 r3677  
    153153     * Initialize the runtime.
    154154     */
    155     int rc = VINF_SUCCESS;/// @todo RTR0Init(0);
     155    int rc = RTR0Init(0);
    156156    if (RT_SUCCESS(rc))
    157157    {
     
    165165             * Initialize the session hash table.
    166166             */
    167             /// @todo rc = RTSpinlockCreate(&g_Spinlock);
     167            rc = RTSpinlockCreate(&g_Spinlock);
    168168            if (RT_SUCCESS(rc))
    169169            {
     
    186186                printf("vboxdrv: make_dev failed\n");
    187187                rc = SUPDRV_ERR_ALREADY_LOADED;
     188                RTSpinlockDestroy(g_Spinlock);
     189                g_Spinlock = NIL_RTSPINLOCK;
    188190            }
    189191            else
     
    193195        else
    194196            printf("vboxdrv: supdrvInitDevExt failed, rc=%d\n", rc);
    195         /// @todo RTR0Term();
     197        RTR0Term();
    196198    }
    197199    else
     
    217219
    218220    rc = 0; /// @todo supdrvDeleteDevExt(&g_DevExt);
    219     /// @todo AssertRC(rc);
    220 
    221     /// @todo rc = RTSpinlockDestroy(g_Spinlock);
    222     /// @todo AssertRC(rc);
     221    AssertRC(rc);
     222
     223    rc = RTSpinlockDestroy(g_Spinlock);
     224    AssertRC(rc);
    223225    g_Spinlock = NIL_RTSPINLOCK;
    224226
    225     /// @todo RTR0Term();
     227    RTR0Term();
    226228
    227229    memset(&g_DevExt, 0, sizeof(g_DevExt));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette