Changeset 9444 in vbox for trunk/src/VBox/Runtime/r0drv/freebsd
- Timestamp:
- Jun 5, 2008 6:08:17 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31696
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/timer-r0drv-freebsd.c
r9352 r9444 97 97 * Validate flags. 98 98 */ 99 if (!RTTIMER_FLAGS_ IS_VALID(fFlags))99 if (!RTTIMER_FLAGS_ARE_VALID(fFlags)) 100 100 return VERR_INVALID_PARAMETER; 101 101 if ( (fFlags & RTTIMER_FLAGS_CPU_SPECIFIC) … … 214 214 if ( pTimer->iCpu == RTTIMER_FLAGS_CPU_MASK 215 215 || (u_int)pTimer->iCpu == curcpu) 216 pTimer->pfnTimer(pTimer, pTimer->pvUser );216 pTimer->pfnTimer(pTimer, pTimer->pvUser, pTimer->iTick); 217 217 } 218 218 … … 223 223 224 224 /* calculate and set the next timeout */ 225 pTimer->iTick++; 225 226 if (!pTimer->u64NanoInterval) 226 227 { … … 232 233 struct timeval tv; 233 234 const uint64_t u64NanoTS = RTTimeNanoTS(); 234 pTimer->iTick++;235 235 pTimer->u64NextTS = pTimer->u64StartTS + pTimer->iTick * pTimer->u64NanoInterval; 236 236 if (pTimer->u64NextTS < u64NanoTS) … … 245 245 if ( !pTimer->fSpecificCpu 246 246 || pTimer->iCpu == curcpu) 247 pTimer->pfnTimer(pTimer, pTimer->pvUser );247 pTimer->pfnTimer(pTimer, pTimer->pvUser, pTimer->iTick); 248 248 else 249 249 smp_rendezvous(NULL, rtTimerFreeBSDIpiAction, NULL, pvTimer);
Note:
See TracChangeset
for help on using the changeset viewer.