Changeset 53994 in vbox for trunk/src/VBox/ExtPacks
- Timestamp:
- Jan 27, 2015 11:55:49 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97899
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0.cpp
r53974 r53994 750 750 RTNATIVETHREAD hNativeSelf = RTThreadNativeSelf(); 751 751 RTPROCESS uPid = RTProcSelf(); 752 uintptr_t iHash = (hNativeSelf * 2654435761 ) % RT_ELEMENTS(g_apThreadsHash);752 uintptr_t iHash = (hNativeSelf * 2654435761U) % RT_ELEMENTS(g_apThreadsHash); 753 753 754 754 RTSpinlockAcquire(g_hThreadSpinlock); … … 791 791 if (pThread->hNative != NIL_RTNATIVETHREAD) 792 792 { 793 uintptr_t iHash2 = (pThread->hNative * 2654435761 ) % RT_ELEMENTS(g_apThreadsHash);793 uintptr_t iHash2 = (pThread->hNative * 2654435761U) % RT_ELEMENTS(g_apThreadsHash); 794 794 if (g_apThreadsHash[iHash2] == pThread) 795 795 g_apThreadsHash[iHash2] = pThread->pNext; … … 1800 1800 * Convert arguments from uintptr_t to uint64_t. 1801 1801 */ 1802 PVTGDESCPROBE pProbe = (PVTGDESCPROBE)((PVTGPROBELOC)pVtgProbeLoc)->pbProbe;1802 PVTGDESCPROBE pProbe = pVtgProbeLoc->pProbe; 1803 1803 AssertPtrReturnVoid(pProbe); 1804 1804 PVTGOBJHDR pVtgHdr = (PVTGOBJHDR)((uintptr_t)pProbe + pProbe->offObjHdr); … … 1827 1827 au64DstArgs[iDstArg++] = auSrcArgs[iSrcArg++]; 1828 1828 1829 pStackData->u.ProbeFireK .pauStackArgs = &auSrcArgs[iSrcArg];1829 pStackData->u.ProbeFireKernel.pauStackArgs = &auSrcArgs[iSrcArg]; 1830 1830 dtrace_probe(pVtgProbeLoc->idProbe, au64DstArgs[0], au64DstArgs[1], au64DstArgs[2], au64DstArgs[3], au64DstArgs[4]); 1831 1831 }
Note:
See TracChangeset
for help on using the changeset viewer.