VirtualBox

Ignore:
Timestamp:
Sep 16, 2010 4:18:12 PM (14 years ago)
Author:
vboxsync
Message:

VMM,SUPDrv,IPRT: More changes for related to the priodic preemption timer. (still disabled)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/timer-r0drv-solaris.c

    r32504 r32572  
    103103
    104104
    105 RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, unsigned fFlags, PFNRTTIMER pfnTimer, void *pvUser)
     105RTDECL(int) RTTimerCreateEx(PRTTIMER *ppTimer, uint64_t u64NanoInterval, uint32_t fFlags, PFNRTTIMER pfnTimer, void *pvUser)
    106106{
    107107    RT_ASSERT_PREEMPTIBLE();
     
    118118    if (    (fFlags & RTTIMER_FLAGS_CPU_SPECIFIC)
    119119        &&  (fFlags & RTTIMER_FLAGS_CPU_ALL) != RTTIMER_FLAGS_CPU_ALL
    120         &&  !RTMpIsCpuPossible((fFlags & RTTIMER_FLAGS_CPU_MASK)))
     120        &&  !RTMpIsCpuPossible(RTMpCpuIdFromSetIndex(fFlags & RTTIMER_FLAGS_CPU_MASK)))
    121121        return VERR_CPU_NOT_FOUND;
    122122
     
    143143        pTimer->fAllCpu = false;
    144144        pTimer->fSpecificCpu = true;
    145         pTimer->iCpu = fFlags & RTTIMER_FLAGS_CPU_MASK;
     145        pTimer->iCpu = fFlags & RTTIMER_FLAGS_CPU_MASK; /* ASSUMES: index == cpuid */
    146146    }
    147147    else
     
    237237
    238238
     239RTDECL(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
    239249RTDECL(uint32_t) RTTimerGetSystemGranularity(void)
    240250{
     
    257267RTDECL(bool) RTTimerCanDoHighResolution(void)
    258268{
    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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette