Changeset 40806 in vbox for trunk/src/VBox/Devices/Bus
- Timestamp:
- Apr 6, 2012 9:05:19 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77321
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/SrvPciRawR0.cpp
r39086 r40806 95 95 static DECLCALLBACK(bool) pcirawr0Isr(void* pContext, int32_t iHostIrq) 96 96 { 97 RTSPINLOCKTMP aTmp;98 97 PPCIRAWDEV pThis = (PPCIRAWDEV)pContext; 99 98 … … 114 113 #endif 115 114 116 RTSpinlockAcquire NoInts(pThis->hSpinlock, &aTmp);115 RTSpinlockAcquire(pThis->hSpinlock); 117 116 pThis->iPendingIrq = iHostIrq; 118 RTSpinlockReleaseNoInts(pThis->hSpinlock , &aTmp);117 RTSpinlockReleaseNoInts(pThis->hSpinlock); 119 118 120 119 /** … … 575 574 if (RT_SUCCESS(rc)) 576 575 { 577 rc = RTSpinlockCreate(&pNew->hSpinlock );576 rc = RTSpinlockCreate(&pNew->hSpinlock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "PciRaw"); 578 577 AssertRC(rc); 579 578 rc = RTSemEventCreate(&pNew->hIrqEvent); … … 862 861 { 863 862 int rc = VINF_SUCCESS; 864 RTSPINLOCKTMP aTmp;865 863 bool fTerminate = false; 866 864 int32_t iPendingIrq = 0; … … 870 868 GET_PORT(TargetDevice); 871 869 872 RTSpinlockAcquire NoInts(pDev->hSpinlock, &aTmp);870 RTSpinlockAcquire(pDev->hSpinlock); 873 871 iPendingIrq = pDev->iPendingIrq; 874 872 pDev->iPendingIrq = 0; 875 873 fTerminate = pDev->fTerminate; 876 RTSpinlockReleaseNoInts(pDev->hSpinlock , &aTmp);874 RTSpinlockReleaseNoInts(pDev->hSpinlock); 877 875 878 876 /* Block until new IRQs arrives */ … … 887 885 if (!ASMAtomicReadBool(&pDev->fTerminate)) 888 886 { 889 RTSpinlockAcquire NoInts(pDev->hSpinlock, &aTmp);887 RTSpinlockAcquire(pDev->hSpinlock); 890 888 iPendingIrq = pDev->iPendingIrq; 891 889 pDev->iPendingIrq = 0; 892 RTSpinlockReleaseNoInts(pDev->hSpinlock , &aTmp);890 RTSpinlockReleaseNoInts(pDev->hSpinlock); 893 891 } 894 892 else
Note:
See TracChangeset
for help on using the changeset viewer.