Changeset 6774 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Feb 4, 2008 6:48:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c
r6559 r6774 834 834 static int VBoxGuestSolarisAddIRQ(dev_info_t *pDip, void *pvState) 835 835 { 836 LogFlow((DEVICE_NAME ":VBoxGuestSolarisAddIRQ %p\n", pvState)); 837 838 VBoxAddDevState *pState = (VBoxAddDevState *)pvState; 836 839 #if 0 837 840 /* … … 840 843 * and non-obsolete way of setting up IRQs. 841 844 */ 842 rc = ddi_get_iblock_cookie(pDip, 0, &pState->BlockCookie);845 int rc = ddi_get_iblock_cookie(pDip, 0, &pState->BlockCookie); 843 846 if (rc == DDI_SUCCESS) 844 847 { … … 851 854 Log((DEVICE_NAME ":ddi_get_iblock_cookie failed. Cannot set IRQ for VMMDev.\n")); 852 855 return rc; 853 #endif 854 int rc; 856 #else 855 857 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); 860 859 if (rc == DDI_SUCCESS) 861 860 { … … 937 936 LogRel((DEVICE_NAME ":VBoxGuestSolarisAddIRQ: failed to get supported interrupt types\n")); 938 937 return rc; 938 #endif 939 939 } 940 940 … … 954 954 ddi_remove_intr(pDip, 0, pState->BlockCookie); 955 955 mutex_destroy(&pState->Mtx); 956 #e ndif956 #else 957 957 for (int i = 0; i < pState->cIntr; i++) 958 958 { … … 967 967 RTMemFree(pState->pIntr); 968 968 mutex_destroy(&pState->Mtx); 969 #endif 969 970 } 970 971
Note:
See TracChangeset
for help on using the changeset viewer.