VirtualBox

Changeset 19932 in vbox for trunk/src


Ignore:
Timestamp:
May 23, 2009 1:42:49 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47634
Message:

SUPDrv: Expose the RTThreadPreempt API to modules.

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

Legend:

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

    r19890 r19932  
    260260DECLASM(int)    UNWIND_WRAP(RTThreadUserWaitNoResume)(RTTHREAD Thread, unsigned cMillies);
    261261#endif
     262/* RTThreadPreemptIsEnabled - not necessary */
     263/* RTThreadPreemptIsPending  - not necessary */
     264/* RTThreadPreemptDisable - not necessary */
     265DECLASM(void)   UNWIND_WRAP(RTThreadPreemptRestore)(RTTHREADPREEMPTSTATE pState);
    262266/* RTLogDefaultInstance   - a bit of a gamble, but we do not want the overhead! */
    263267/* RTMpCpuId              - not necessary */
     
    415419    { "RTThreadUserWaitNoResume",               (void *)UNWIND_WRAP(RTThreadUserWaitNoResume) },
    416420#endif
     421    { "RTThreadPreemptIsEnabled",               (void *)RTThreadPreemptIsEnabled },
     422    { "RTThreadPreemptIsPending",               (void *)RTThreadPreemptIsPending },
     423    { "RTThreadPreemptDisable",                 (void *)RTThreadPreemptDisable },
     424    { "RTThreadPreemptRestore",                 (void *)UNWIND_WRAP(RTThreadPreemptRestore) },
     425
    417426    { "RTLogDefaultInstance",                   (void *)RTLogDefaultInstance },
    418427    { "RTMpCpuId",                              (void *)RTMpCpuId },
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r19893 r19932  
    188188 *            and renaming the related IOCtls too.
    189189 */
    190 #define SUPDRV_IOC_VERSION                              0x000c0002
     190#define SUPDRV_IOC_VERSION                              0x000c0003
    191191
    192192/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPR0.def

    r19866 r19932  
    119119    RTThreadSleep
    120120    RTThreadYield
     121    RTThreadPreemptIsEnabled
     122    RTThreadPreemptIsPending
     123    RTThreadPreemptDisable
     124    RTThreadPreemptRestore
    121125    RTMpOnAll
    122126    RTMpOnOthers
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrvA-win.asm

    r19866 r19932  
    153153NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTThreadUserWaitNoResume
    154154%endif
     155;NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTThreadPreemptIsEnabled - not necessary
     156;NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTThreadPreemptIsPending - not necessary
     157;NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTThreadPreemptDisable - not necessary
     158NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTThreadPreemptRestore
    155159;NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTLogDefaultInstance   - a bit of a gamble, but we do not want the overhead!
    156160;NtWrapDyn2DrvFunctionWithAllRegParams  supdrvNtWrap, RTMpCpuId              - not necessary
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