VirtualBox

Changeset 1710 in vbox


Ignore:
Timestamp:
Mar 27, 2007 8:28:34 AM (18 years ago)
Author:
vboxsync
Message:

Fixed support for Linux guest ring 3 in the runtime

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/init.cpp

    r1 r1710  
    4040#include <iprt/string.h>
    4141#include <iprt/param.h>
    42 #ifndef IN_GUEST
     42#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    4343# include <iprt/file.h>
    4444# include <VBox/sup.h>
     
    101101    /* no entry log flow, because prefixes and thread may freak out. */
    102102
    103 #ifndef IN_GUEST
     103#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    104104# ifdef VBOX
    105105    /*
     
    117117    }
    118118# endif  /* VBOX */
    119 #endif /* !IN_GUEST */
     119#endif /* !IN_GUEST and !IN_GUEST_R3 */
    120120
    121121    /*
     
    131131    }
    132132
    133 #ifndef IN_GUEST
     133#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    134134    if (fInitSUPLib)
    135135    {
     
    148148    g_u64ProgramStartMilliTS = RTTimeMilliTS();
    149149
    150 #ifndef IN_GUEST
     150#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    151151    /*
    152152     * The threading is initialized we can safely sleep a bit if GIP
  • trunk/src/VBox/Runtime/timesup.cpp

    r1027 r1710  
    3636*   Global Variables                                                           *
    3737*******************************************************************************/
    38 #ifndef IN_GUEST
     38#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    3939/** The previously returned nano TS.
    4040 * This handles TSC drift on SMP systems and expired interval.
     
    6363DECLINLINE(uint64_t) rtTimeNanoTSInternal(void)
    6464{
    65 #ifndef IN_GUEST
     65#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    6666    uint64_t    u64Delta;
    6767    uint32_t    u32NanoTSFactor0;
     
    202202
    203203    return u64;
    204 #else /* IN_GUEST */
     204#else /* IN_GUEST || IN_GUEST_R3 */
    205205    return RTTimeSystemNanoTS();
    206 #endif /* IN_GUEST */
     206#endif /* IN_GUEST || IN_GUEST_R3 */
    207207}
    208208
     
    230230
    231231
    232 #ifndef IN_GUEST
     232#if !defined(IN_GUEST) && !defined(IN_GUEST_R3)
    233233/**
    234234 * Debugging the time api.
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