Changeset 30111 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Jun 9, 2010 12:14:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62505
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r28800 r30111 508 508 if (g_pSUPGlobalInfoPage) 509 509 { 510 ASMAtomic XchgPtr((void * volatile *)&g_pSUPGlobalInfoPage, NULL);511 ASMAtomic XchgPtr((void * volatile *)&g_pSUPGlobalInfoPageR0, NULL);512 ASMAtomic XchgSize(&g_HCPhysSUPGlobalInfoPage, NIL_RTHCPHYS);510 ASMAtomicWritePtr((void * volatile *)&g_pSUPGlobalInfoPage, NULL); 511 ASMAtomicWritePtr((void * volatile *)&g_pSUPGlobalInfoPageR0, NULL); 512 ASMAtomicWriteSize(&g_HCPhysSUPGlobalInfoPage, NIL_RTHCPHYS); 513 513 /* just a little safe guard against threads using the page. */ 514 514 RTThreadSleep(50); -
trunk/src/VBox/HostDrivers/Support/SUPR0IdcClient.c
r29261 r30111 125 125 && (Req.u.Out.uSessionVersion & UINT32_C(0xffff0000)) == (SUPDRV_IDC_VERSION & UINT32_C(0xffff0000))) 126 126 { 127 ASMAtomicCmpXchgPtr( (void * volatile *)&g_pMainHandle, pHandle, NULL);127 ASMAtomicCmpXchgPtr(&g_pMainHandle, pHandle, NULL); 128 128 return rc; 129 129 } … … 167 167 { 168 168 pHandle->s.pSession = NULL; 169 ASMAtomicCmpXchgPtr( (void * volatile *)&g_pMainHandle, NULL, pHandle);169 ASMAtomicCmpXchgPtr(&g_pMainHandle, NULL, pHandle); 170 170 } 171 171 return rc; … … 203 203 PSUPDRVIDCHANDLE supR0IdcGetHandleFromSession(PSUPDRVSESSION pSession) 204 204 { 205 PSUPDRVIDCHANDLE pHandle = (PSUPDRVIDCHANDLE)ASMAtomicUoReadPtr((void * volatile *)&g_pMainHandle);205 PSUPDRVIDCHANDLE pHandle = ASMAtomicUoReadPtrT(&g_pMainHandle, PSUPDRVIDCHANDLE); 206 206 if ( VALID_PTR(pHandle) 207 207 && pHandle->s.pSession == pSession) -
trunk/src/VBox/HostDrivers/Support/SUPSvcGrant.cpp
r28800 r30111 179 179 * Clean up the session. 180 180 */ 181 PSUPSVCGRANT pParent = (PSUPSVCGRANT)ASMAtomicReadPtr((void * volatile *)&pThis->pParent);181 PSUPSVCGRANT pParent = ASMAtomicReadPtrT(&pThis->pParent, PSUPSVCGRANT); 182 182 if (pParent) 183 183 RTCritSectEnter(&pParent->CritSect); … … 975 975 unsigned cSessions = 0; 976 976 for (PSUPSVCGRANTSESSION pCur = pThis->pSessionHead; pCur; pCur = pCur->pNext) 977 ASMAtomicWritePtr( (void * volatile *)&pCur->pParent, NULL);977 ASMAtomicWritePtr(&pCur->pParent, NULL); 978 978 979 979 RTCritSectLeave(&pThis->CritSect);
Note:
See TracChangeset
for help on using the changeset viewer.