Changeset 37211 in vbox for trunk/src/VBox
- Timestamp:
- May 25, 2011 11:37:52 AM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r37175 r37211 2189 2189 { 2190 2190 VMMDevState *pThis = IVMMDEVPORT_2_VMMDEVSTATE(pInterface); 2191 AssertCompile(sizeof(pThis->mouseXAbs) == sizeof(*pAbsX));2192 AssertCompile(sizeof(pThis->mouseYAbs) == sizeof(*pAbsY));2193 2191 if (pAbsX) 2194 ASMAtomicReadSize(&pThis->mouseXAbs, pAbsX);2192 *pAbsX = ASMAtomicReadS32(&pThis->mouseXAbs); /* why the atomic read? */ 2195 2193 if (pAbsY) 2196 ASMAtomicReadSize(&pThis->mouseYAbs, pAbsY);2194 *pAbsY = ASMAtomicReadS32(&pThis->mouseYAbs); 2197 2195 return VINF_SUCCESS; 2198 2196 } … … 2210 2208 PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY); 2211 2209 2212 if ( (pThis->mouseXAbs == absX) && (pThis->mouseYAbs == absY))2210 if (pThis->mouseXAbs == absX && pThis->mouseYAbs == absY) 2213 2211 { 2214 2212 PDMCritSectLeave(&pThis->CritSect); -
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r37067 r37211 5140 5140 if (enmEvent == RTMPEVENT_OFFLINE) 5141 5141 { 5142 RTCPUID idGipMaster; 5143 ASMAtomicReadSize(&pDevExt->idGipMaster, &idGipMaster); 5142 RTCPUID idGipMaster = ASMAtomicReadU32(&pDevExt->idGipMaster); 5144 5143 if (idGipMaster == idCpu) 5145 5144 { -
trunk/src/VBox/Runtime/r0drv/mpnotification-r0drv.c
r36555 r37211 305 305 /* pick up the list and the spinlock. */ 306 306 RTSpinlockAcquire(hSpinlock, &Tmp); 307 ASMAtomicWrite Size(&g_hRTMpNotifySpinLock, NIL_RTSPINLOCK);307 ASMAtomicWriteHandle(&g_hRTMpNotifySpinLock, NIL_RTSPINLOCK); 308 308 pHead = g_pRTMpCallbackHead; 309 309 g_pRTMpCallbackHead = NULL; -
trunk/src/VBox/Runtime/r0drv/powernotification-r0drv.c
r36555 r37211 301 301 /* pick up the list and the spinlock. */ 302 302 RTSpinlockAcquire(hSpinlock, &Tmp); 303 ASMAtomicWrite Size(&g_hRTPowerNotifySpinLock, NIL_RTSPINLOCK);303 ASMAtomicWriteHandle(&g_hRTPowerNotifySpinLock, NIL_RTSPINLOCK); 304 304 pHead = g_pRTPowerCallbackHead; 305 305 g_pRTPowerCallbackHead = NULL; -
trunk/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp
r33540 r37211 175 175 * Invalidate the semaphore and wake up anyone waiting on it. 176 176 */ 177 ASMAtomicWrite Size(&pThis->u32Magic, RTSEMEVENTMULTI_MAGIC + 1);177 ASMAtomicWriteU32(&pThis->u32Magic, RTSEMEVENTMULTI_MAGIC + 1); 178 178 if (ASMAtomicXchgS32(&pThis->iState, -1) == 1) 179 179 { -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r36768 r37211 2528 2528 for (PVMREQ pReq = pReqHead; pReq; pReq = pReq->pNext) 2529 2529 { 2530 ASMAtomicUoWriteS ize(&pReq->iStatus, VERR_INTERNAL_ERROR);2530 ASMAtomicUoWriteS32(&pReq->iStatus, VERR_INTERNAL_ERROR); 2531 2531 ASMAtomicWriteSize(&pReq->enmState, VMREQSTATE_INVALID); 2532 2532 RTSemEventSignal(pReq->EventSem); … … 2553 2553 for (PVMREQ pReq = pReqHead; pReq; pReq = pReq->pNext) 2554 2554 { 2555 ASMAtomicUoWriteS ize(&pReq->iStatus, VERR_INTERNAL_ERROR);2555 ASMAtomicUoWriteS32(&pReq->iStatus, VERR_INTERNAL_ERROR); 2556 2556 ASMAtomicWriteSize(&pReq->enmState, VMREQSTATE_INVALID); 2557 2557 RTSemEventSignal(pReq->EventSem);
Note:
See TracChangeset
for help on using the changeset viewer.