Changeset 32572 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/vbi
- Timestamp:
- Sep 16, 2010 4:18:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c
r32504 r32572 103 103 104 104 105 RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, u nsignedfFlags, PFNRTTIMER pfnTimer, void *pvUser)105 RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, uint32_t fFlags, PFNRTTIMER pfnTimer, void *pvUser) 106 106 { 107 107 RT_ASSERT_PREEMPTIBLE(); … … 118 118 if ( (fFlags & RTTIMER_FLAGS_CPU_SPECIFIC) 119 119 && (fFlags & RTTIMER_FLAGS_CPU_ALL) != RTTIMER_FLAGS_CPU_ALL 120 && !RTMpIsCpuPossible( (fFlags & RTTIMER_FLAGS_CPU_MASK)))120 && !RTMpIsCpuPossible(RTMpCpuIdFromSetIndex(fFlags & RTTIMER_FLAGS_CPU_MASK))) 121 121 return VERR_CPU_NOT_FOUND; 122 122 … … 143 143 pTimer->fAllCpu = false; 144 144 pTimer->fSpecificCpu = true; 145 pTimer->iCpu = fFlags & RTTIMER_FLAGS_CPU_MASK; 145 pTimer->iCpu = fFlags & RTTIMER_FLAGS_CPU_MASK; /* ASSUMES: index == cpuid */ 146 146 } 147 147 else … … 237 237 238 238 239 RTDECL(int) RTTimerChangeInterval(PRTTIMER pTimer, uint64_t u64NanoInterval) 240 { 241 RTTIMER_ASSERT_VALID_RET(pTimer); 242 243 /** @todo implement me! */ 244 245 return VERR_NOT_SUPPORTED; 246 } 247 248 239 249 RTDECL(uint32_t) RTTimerGetSystemGranularity(void) 240 250 { … … 257 267 RTDECL(bool) RTTimerCanDoHighResolution(void) 258 268 { 259 return true; 260 } 261 269 /** @todo return true; - when missing bits have been implemented and tested*/ 270 return false; 271 } 272
Note:
See TracChangeset
for help on using the changeset viewer.