VirtualBox

Ignore:
Timestamp:
Sep 15, 2010 10:12:38 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65880
Message:

SUPDrv,IPRT,VMM,DevAPIC: Added RTTimerCanDoHighResolution and exposed the RTTimer* API to the ring-0 modules. Fixed two regression from r65858 (TM + APIC).

Location:
trunk/src/VBox/HostDrivers/Support
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r32417 r32504  
    5050#include <iprt/crc.h>
    5151#include <iprt/string.h>
     52#include <iprt/timer.h>
    5253#if defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)
    5354# include <iprt/rand.h>
     
    270271    { "RTThreadPreemptRestore",                 (void *)RTThreadPreemptRestore },
    271272    { "RTThreadIsInInterrupt",                  (void *)RTThreadIsInInterrupt },
     273    { "RTTimerCreate",                          (void *)RTTimerCreate },
     274    { "RTTimerCreateEx",                        (void *)RTTimerCreateEx },
     275    { "RTTimerDestroy",                         (void *)RTTimerDestroy },
     276    { "RTTimerStart",                           (void *)RTTimerStart },
     277    { "RTTimerStop",                            (void *)RTTimerStop },
     278    { "RTTimerGetSystemGranularity",            (void *)RTTimerGetSystemGranularity },
     279    { "RTTimerRequestSystemGranularity",        (void *)RTTimerRequestSystemGranularity },
     280    { "RTTimerReleaseSystemGranularity",        (void *)RTTimerReleaseSystemGranularity },
     281    { "RTTimerCanDoHighResolution",             (void *)RTTimerCanDoHighResolution },
    272282
    273283    { "RTLogDefaultInstance",                   (void *)RTLogDefaultInstance },
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r32358 r32504  
    193193 *          - Nothing.
    194194 */
    195 #define SUPDRV_IOC_VERSION                              0x00150001
     195#define SUPDRV_IOC_VERSION                              0x00150002
    196196
    197197/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r32036 r32504  
    269269        CookieReq.u.In.u32ReqVersion = SUPDRV_IOC_VERSION;
    270270        const uint32_t uMinVersion = (SUPDRV_IOC_VERSION & 0xffff0000) == 0x00150000
    271                                    ?  0x00150001
     271                                   ?  0x00150002
    272272                                   : SUPDRV_IOC_VERSION & 0xffff0000;
    273273        CookieReq.u.In.u32MinVersion = uMinVersion;
     
    454454        { "RTThreadSleep",                          0xefef0039 },
    455455        { "RTThreadYield",                          0xefef003a },
     456        { "RTTimerCreate",                          0xefef003a },
     457        { "RTTimerCreateEx",                        0xefef003a },
     458        { "RTTimerDestroy",                         0xefef003a },
     459        { "RTTimerStart",                           0xefef003a },
     460        { "RTTimerStop",                            0xefef003a },
     461        { "RTTimerGetSystemGranularity",            0xefef003a },
     462        { "RTTimerRequestSystemGranularity",        0xefef003a },
     463        { "RTTimerReleaseSystemGranularity",        0xefef003a },
     464        { "RTTimerCanDoHighResolution",             0xefef003a },
    456465        { "RTLogDefaultInstance",                   0xefef003b },
    457466        { "RTLogRelDefaultInstance",                0xefef003c },
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r32256 r32504  
    130130        generic/RTLogWriteStdOut-stub-generic.o \
    131131        generic/RTLogWriteUser-generic.o \
     132        generic/RTTimerCreate-generic.o \
    132133        generic/uuid-generic.o \
    133134        VBox/log-vbox.o
  • trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv

    r31847 r32504  
    128128    ${PATH_ROOT}/src/VBox/Runtime/generic/RTLogWriteStdOut-stub-generic.cpp=>generic/RTLogWriteStdOut-stub-generic.c \
    129129    ${PATH_ROOT}/src/VBox/Runtime/generic/RTLogWriteUser-generic.cpp=>generic/RTLogWriteUser-generic.c \
     130    ${PATH_ROOT}/src/VBox/Runtime/generic/RTTimerCreate-generic.cpp=>generic/RTTimerCreate-generic.c \
    130131    ${PATH_ROOT}/src/VBox/Runtime/generic/uuid-generic.cpp=>generic/uuid-generic.c \
    131132    ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \
Note: See TracChangeset for help on using the changeset viewer.

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