Changeset 4542 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 5, 2007 8:07:47 PM (17 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r4474 r4542 373 373 generic/RTFileMove-generic.cpp \ 374 374 generic/RTLogWriteDebugger-generic.cpp \ 375 generic/RTTimeLocalNow-generic.cpp \ 375 376 generic/RTTimerCreate-generic.cpp \ 376 377 generic/pathhost-generic.cpp \ … … 703 704 math/gcc/xordi3.c 704 705 endif 705 706 706 707 707 708 string/memchr.cpp_CXXFLAGS.win = -Oi- 708 709 string/memcmp.cpp_CXXFLAGS.win = -Oi- -
trunk/src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h
r4049 r4542 53 53 #include <sys/sched.h> 54 54 #include <sys/callout.h> 55 #include <sys/smp.h> 55 56 #include <vm/vm.h> 56 57 #include <vm/pmap.h> /* for vtophys */ -
trunk/src/VBox/Runtime/r0drv/freebsd/timer-r0drv-freebsd.c
r3977 r4542 103 103 && (fFlags & RTTIMER_FLAGS_CPU_MASK) > mp_maxid) 104 104 return VERR_INVALID_PARAMETER; 105 105 106 106 /* 107 107 * Allocate and initialize the timer handle. … … 176 176 pTimer->u64StartTS = u64First; 177 177 pTimer->u64NextTS = u64First; 178 178 179 179 tv.tv_sec = u64First / 1000000000; 180 180 tv.tv_usec = (u64First % 1000000000) / 1000; … … 206 206 * 207 207 * This will perform the timer callback if we're on the right CPU. 208 * 208 * 209 209 * @param pvTimer The timer. 210 210 */ 211 211 static void rtTimerFreeBSDIpiAction(void *pvTimer) 212 212 { 213 PRTTIMER pTimer = (PRTTIMER)pvTimer; 214 if ( pTimer->iCpu == RTTIMER_FLAGS_CPU_ ALL213 PRTTIMER pTimer = (PRTTIMER)pvTimer; 214 if ( pTimer->iCpu == RTTIMER_FLAGS_CPU_MASK 215 215 || (u_int)pTimer->iCpu == curcpu) 216 216 pTimer->pfnTimer(pTimer, pTimer->pvUser); … … 235 235 if (pTimer->u64NextTS < u64NanoTS) 236 236 pTimer->u64NextTS = u64NanoTS + RTTimerGetSystemGranularity() / 2; 237 237 238 238 tv.tv_sec = pTimer->u64NextTS / 1000000000; 239 239 tv.tv_usec = (pTimer->u64NextTS % 1000000000) / 1000;
Note:
See TracChangeset
for help on using the changeset viewer.