VirtualBox

Changeset 6774 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 4, 2008 6:48:03 AM (17 years ago)
Author:
vboxsync
Message:

Solaris vboxguest: Fix ifdef and updated conf file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r6559 r6774  
    834834static int VBoxGuestSolarisAddIRQ(dev_info_t *pDip, void *pvState)
    835835{
     836    LogFlow((DEVICE_NAME ":VBoxGuestSolarisAddIRQ %p\n", pvState));
     837
     838    VBoxAddDevState *pState = (VBoxAddDevState *)pvState;
    836839#if 0
    837840    /*
     
    840843     * and non-obsolete way of setting up IRQs.
    841844     */
    842     rc = ddi_get_iblock_cookie(pDip, 0, &pState->BlockCookie);
     845    int rc = ddi_get_iblock_cookie(pDip, 0, &pState->BlockCookie);
    843846    if (rc == DDI_SUCCESS)
    844847    {
     
    851854        Log((DEVICE_NAME ":ddi_get_iblock_cookie failed. Cannot set IRQ for VMMDev.\n"));
    852855    return rc;
    853 #endif
    854     int rc;
     856#else
    855857    int IntrType;
    856     VBoxAddDevState *pState = (VBoxAddDevState *)pvState;
    857     LogFlow((DEVICE_NAME ":VBoxGuestSolarisAddIRQ %p\n", pvState));
    858 
    859     rc = ddi_intr_get_supported_types(pDip, &IntrType);
     858    int rc = ddi_intr_get_supported_types(pDip, &IntrType);
    860859    if (rc == DDI_SUCCESS)
    861860    {
     
    937936        LogRel((DEVICE_NAME ":VBoxGuestSolarisAddIRQ: failed to get supported interrupt types\n"));
    938937    return rc;
     938#endif
    939939}
    940940
     
    954954    ddi_remove_intr(pDip, 0, pState->BlockCookie);
    955955    mutex_destroy(&pState->Mtx);
    956 #endif
     956#else
    957957    for (int i = 0; i < pState->cIntr; i++)
    958958    {
     
    967967    RTMemFree(pState->pIntr);
    968968    mutex_destroy(&pState->Mtx);
     969#endif
    969970}
    970971
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