Changeset 62665 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Jul 28, 2016 11:44:29 PM (8 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp
r62664 r62665 5705 5705 return VERR_INVALID_FUNCTION; 5706 5706 } 5707 RT_NOREF1(pDevExt); 5707 5708 return rc; 5708 5709 #else -
trunk/src/VBox/HostDrivers/Support/SUPDrvSem.cpp
r62490 r62665 61 61 { 62 62 Assert(pvUser2 == NULL); 63 NOREF(pvObj);63 RT_NOREF2(pvObj, pvUser2); 64 64 RTSemEventDestroy((RTSEMEVENT)pvUser1); 65 65 } … … 218 218 SUPDECL(uint32_t) SUPSemEventGetResolution(PSUPDRVSESSION pSession) 219 219 { 220 RT_NOREF1(pSession); 220 221 Assert(SUP_IS_SESSION_VALID(pSession)); 221 222 return RTSemEventGetResolution(); … … 233 234 { 234 235 Assert(pvUser2 == NULL); 235 NOREF(pvObj);236 RT_NOREF2(pvObj, pvUser2); 236 237 RTSemEventMultiDestroy((RTSEMEVENTMULTI)pvUser1); 237 238 } … … 417 418 SUPDECL(uint32_t) SUPSemEventMultiGetResolution(PSUPDRVSESSION pSession) 418 419 { 420 RT_NOREF1(pSession); 419 421 Assert(SUP_IS_SESSION_VALID(pSession)); 420 422 return RTSemEventMultiGetResolution(); -
trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp
r62490 r62665 1723 1723 */ 1724 1724 int rc; 1725 size_t constcProbeLocs = pVtgHdr->cbProbeLocs / (pVtgHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64));1726 size_t constcbProbeLocs = cProbeLocs * sizeof(VTGPROBELOC);1727 size_t constoffProbeLocs = RT_ALIGN(pVtgHdr->cbObj, 8);1725 uint32_t const cProbeLocs = pVtgHdr->cbProbeLocs / (pVtgHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64)); 1726 uint32_t const cbProbeLocs = cProbeLocs * sizeof(VTGPROBELOC); 1727 uint32_t const offProbeLocs = RT_ALIGN(pVtgHdr->cbObj, 8); 1728 1728 size_t const cb = offProbeLocs + cbProbeLocs + cbStrTab + 1; 1729 1729 PSUPDRVVTGCOPY pThis = (PSUPDRVVTGCOPY)RTMemAlloc(RT_OFFSETOF(SUPDRVVTGCOPY, Hdr) + cb); -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r62490 r62665 1986 1986 * It's somewhat easier to do that here than from ring-0. 1987 1987 */ 1988 size_t constcProbeLocs = pVtgHdr->cbProbeLocs1988 uint32_t const cProbeLocs = pVtgHdr->cbProbeLocs 1989 1989 / (pVtgHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64)); 1990 1990 PVTGPROBELOC paProbeLocs = (PVTGPROBELOC)((uintptr_t)pVtgHdr + pVtgHdr->offProbeLocs);
Note:
See TracChangeset
for help on using the changeset viewer.