VirtualBox

Changeset 13832

Show
Ignore:
Timestamp:
11/05/08 03:01:12 (2 months ago)
Author:
vboxsync
Message:

IN_GC -> IN_RC.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Config.kmk

    r13812 r13832  
    18621862TEMPLATE_VBOXGC_ASTOOL              = $(VBOX_ASTOOL) 
    18631863TEMPLATE_VBOXGC_ASFLAGS             = $(VBOX_ASFLAGS32) 
    1864 TEMPLATE_VBOXGC_DEFS                = IN_GC $(ARCH_BITS_DEFS) 
     1864TEMPLATE_VBOXGC_DEFS                = IN_RC $(ARCH_BITS_DEFS) 
    18651865TEMPLATE_VBOXGC_SYSSUFF             = .gc 
    18661866TEMPLATE_VBOXGC_BLD_TRG_ARCH        = x86 
  • trunk/include/VBox/cpum.h

    r13830 r13832  
    975975#endif /* IN_RING3 */ 
    976976 
    977 #ifdef IN_G
     977#ifdef IN_R
    978978/** @defgroup grp_cpum_gc    The CPU Monitor(/Manager) API 
    979979 * @ingroup grp_cpum 
     
    998998 
    999999/** @} */ 
    1000 #endif /* IN_GC */ 
     1000#endif /* IN_RC */ 
    10011001 
    10021002#ifdef IN_RING0 
  • trunk/include/VBox/dbgf.h

    r13005 r13832  
    4545 */ 
    4646 
    47 #ifdef IN_G
     47#ifdef IN_R
    4848/** @addgroup grp_dbgf_gc  The GC DBGF API 
    4949 * @ingroup grp_dbgf 
  • trunk/include/VBox/em.h

    r13778 r13832  
    202202 
    203203 
    204 #ifdef IN_G
     204#ifdef IN_R
    205205/** @defgroup grp_em_gc     The EM Guest Context API 
    206206 * @ingroup grp_em 
     
    215215VMMRCDECL(uint32_t) EMGCEmulateXAdd(RTRCPTR pu32Param1, uint32_t *pu32Param2, size_t cbSize, uint32_t *pEflags); 
    216216/** @} */ 
    217 #endif /* IN_GC */ 
     217#endif /* IN_RC */ 
    218218 
    219219/** @} */ 
  • trunk/include/VBox/hwaccm.h

    r13800 r13832  
    6969VMMDECL(bool)   HWACCMHasPendingIrq(PVM pVM); 
    7070 
    71 #ifndef IN_G
     71#ifndef IN_R
    7272VMMDECL(int)     HWACCMFlushTLB(PVM pVM); 
    7373VMMDECL(int)     HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys); 
  • trunk/include/VBox/iom.h

    r13414 r13832  
    217217VMMDECL(int)  IOMMMIOResetRegion(PVM pVM, RTGCPHYS GCPhys); 
    218218 
    219 #ifdef IN_G
     219#ifdef IN_R
    220220/** @defgroup grp_iom_gc    The IOM Guest Context API 
    221221 * @ingroup grp_iom 
     
    224224VMMRCDECL(int) IOMGCIOPortHandler(PVM pVM, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu); 
    225225/** @} */ 
    226 #endif /* IN_GC */ 
     226#endif /* IN_RC */ 
    227227 
    228228 
  • trunk/include/VBox/mm.h

    r13827 r13832  
    238238 
    239239 
    240 #ifndef IN_G
     240#ifndef IN_R
    241241VMMDECL(void *)     MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr); 
    242242#else 
     
    268268#endif 
    269269 
    270 #ifndef IN_G
     270#ifndef IN_R
    271271VMMDECL(RTRCPTR)    MMHyperCCToRC(PVM pVM, void *pv); 
    272272#else 
     
    299299/** @def MMHYPER_RC_ASSERT_RCPTR 
    300300 * Asserts that an address is either NULL or inside the hypervisor memory area. 
    301  * This assertion only works while IN_GC, it's a NOP everywhere else. 
     301 * This assertion only works while IN_RC, it's a NOP everywhere else. 
    302302 * @thread  The Emulation Thread. 
    303303 */ 
    304 #ifdef IN_G
     304#ifdef IN_R
    305305# define MMHYPER_RC_ASSERT_RCPTR(pVM, RCPtr)   Assert(MMHyperIsInsideArea((pVM), (RTRCUINTPTR)(RCPtr)) || !(RCPtr)) 
    306306#else 
     
    405405 
    406406 
    407 #ifdef IN_G
     407#ifdef IN_R
    408408/** @defgroup grp_mm_gc    The MM Guest Context API 
    409409 * @ingroup grp_mm 
     
    419419 
    420420/** @} */ 
    421 #endif /* IN_GC */ 
     421#endif /* IN_RC */ 
    422422 
    423423/** @} */ 
  • trunk/include/VBox/patm.h

    r12989 r13832  
    292292#endif 
    293293 
    294 #ifdef IN_G
     294#ifdef IN_R
    295295/** @defgroup grp_patm_gc    The Patch Manager API 
    296296 * @ingroup grp_patm 
  • trunk/include/VBox/pdmapi.h

    r13020 r13832  
    120120 
    121121 
    122 #ifdef IN_G
     122#ifdef IN_R
    123123/** @defgroup grp_pdm_gc    The PDM Guest Context API 
    124124 * @ingroup grp_pdm 
  • trunk/include/VBox/pdmins.h

    r13005 r13832  
    3939 * Macro for declaring a callback which is static in HC and exported in GC. 
    4040 */ 
    41 #if defined(IN_GC) || defined(IN_RING0) 
     41#if defined(IN_RC) || defined(IN_RING0) 
    4242# define PDMBOTHCBDECL(type)    DECLEXPORT(type) 
    4343#else 
  • trunk/include/VBox/pgm.h

    r13778 r13832  
    385385{ 
    386386    /** @todo see PGMPhysIsPageMappingLockValid for possibly incorrect assumptions */ 
    387 #ifdef IN_G
     387#ifdef IN_R
    388388    /** Just a dummy for the time being. */ 
    389389    uint32_t    u32Dummy; 
     
    413413{ 
    414414    /** @todo -> complete/change this  */ 
    415 #ifdef IN_G
     415#ifdef IN_R
    416416    return !!(pLock->u32Dummy); 
    417417#else 
     
    426426VMMDECL(void)       PGMPhysRead(PVM pVM, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead); 
    427427VMMDECL(void)       PGMPhysWrite(PVM pVM, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite); 
    428 #ifndef IN_GC /* Only ring 0 & 3. */ 
     428#ifndef IN_RC /* Only ring 0 & 3. */ 
    429429VMMDECL(int)        PGMPhysSimpleReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb); 
    430430VMMDECL(int)        PGMPhysSimpleWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb); 
     
    434434VMMDECL(int)        PGMPhysWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb); 
    435435VMMDECL(int)        PGMPhysSimpleDirtyWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb); 
    436 #endif /* !IN_GC */ 
     436#endif /* !IN_RC */ 
    437437VMMDECL(int)        PGMPhysInterpretedRead(PVM pVM, PCPUMCTXCORE pCtxCore, void *pvDst, RTGCUINTPTR GCPtrSrc, size_t cb); 
    438438#ifdef VBOX_STRICT 
     
    442442#endif /* VBOX_STRICT */ 
    443443 
    444 #if defined(IN_GC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE) 
     444#if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE) 
    445445VMMDECL(int)        PGMDynMapGCPage(PVM pVM, RTGCPHYS GCPhys, void **ppv); 
    446446VMMDECL(int)        PGMDynMapGCPageOff(PVM pVM, RTGCPHYS GCPhys, void **ppv); 
     
    450450 
    451451 
    452 #ifdef IN_G
     452#ifdef IN_R
    453453/** @defgroup grp_pgm_gc  The PGM Guest Context API 
    454454 * @ingroup grp_pgm 
     
    456456 */ 
    457457/** @} */ 
    458 #endif /* IN_GC */ 
     458#endif /* IN_RC */ 
    459459 
    460460 
  • trunk/include/VBox/rem.h

    r13565 r13832  
    4747 
    4848 
    49 #if defined(IN_RING0) || defined(IN_GC) 
     49#if defined(IN_RING0) || defined(IN_RC) 
    5050VMMDECL(int)  REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage); 
    5151VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler); 
    5252VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM); 
    5353VMMDECL(void) REMNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM); 
    54 #endif /* IN_RING0 || IN_GC */ 
     54#endif /* IN_RING0 || IN_RC */ 
    5555VMMDECL(void) REMFlushTBs(PVM pVM); 
    5656 
  • trunk/include/VBox/trpm.h

    r13635 r13832  
    114114 
    115115 
    116 #ifdef IN_G
     116#ifdef IN_R
    117117/** @defgroup grp_trpm_gc    The TRPM Guest Context API 
    118118 * @ingroup grp_trpm 
  • trunk/include/VBox/vm.h

    r13831 r13832  
    359359 *          code to let threads other than EMT mess around with the VM. 
    360360 */ 
    361 #ifdef IN_G
     361#ifdef IN_R
    362362# define VM_IS_EMT(pVM)                     true 
    363363#elif defined(IN_RING0) 
     
    371371 * Asserts that the current thread IS the emulation thread (EMT). 
    372372 */ 
    373 #ifdef IN_G
     373#ifdef IN_R
    374374# define VM_ASSERT_EMT(pVM)                 Assert(VM_IS_EMT(pVM)) 
    375375#elif defined(IN_RING0) 
     
    384384 * Asserts that the current thread IS the emulation thread (EMT) and returns if it isn't. 
    385385 */ 
    386 #ifdef IN_G
     386#ifdef IN_R
    387387# define VM_ASSERT_EMT_RETURN(pVM, rc)      AssertReturn(VM_IS_EMT(pVM), (rc)) 
    388388#elif defined(IN_RING0) 
     
    400400 * @todo r=bird: See VMMGetCpuId(). 
    401401 */ 
    402 #ifdef IN_G
     402#ifdef IN_R
    403403# define VM_GET_VMCPUID(pVM)                0 
    404404#elif defined(IN_RING0) 
     
    788788 
    789789 
    790 #ifdef IN_G
     790#ifdef IN_R
    791791__BEGIN_DECLS 
    792792 
  • trunk/include/VBox/vmapi.h

    r13830 r13832  
    6868 * @param   pvInVM  CC pointer within the VM. 
    6969 */ 
    70 #ifdef IN_G
     70#ifdef IN_R
    7171# define VM_R3_ADDR(pVM, pvInVM)       ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) ) 
    7272#elif defined(IN_RING0) 
     
    8585 * @param   pvInVM  CC pointer within the VM. 
    8686 */ 
    87 #ifdef IN_G
     87#ifdef IN_R
    8888# define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) ) 
    8989#elif defined(IN_RING3) 
     
    313313 
    314314 
    315 #ifndef IN_G
     315#ifndef IN_R
    316316/** @defgroup grp_vmm_apis_hc  VM Host Context API 
    317317 * @ingroup grp_vm 
     
    425425 
    426426 
    427 #ifdef IN_G
     427#ifdef IN_R
    428428/** @defgroup grp_vmm_apis_gc  VM Guest Context APIs 
    429429 * @ingroup grp_vm 
  • trunk/include/VBox/vmm.h

    r13813 r13832  
    284284 
    285285 
    286 #ifdef IN_G
     286#ifdef IN_R
    287287/** @defgroup grp_vmm_rc    The VMM Raw-Mode Context API 
    288288 * @ingroup grp_vmm 
  • trunk/include/VBox/vrdpapi.h

    r12297 r13832  
    3838# error "There are no VRDP APIs available in Ring-0 Host Context!" 
    3939#endif 
    40 #ifdef IN_G
     40#ifdef IN_R
    4141# error "There are no VRDP APIs available Guest Context!" 
    4242#endif 
     
    338338#define VRDP_USB_XFER_BO    (10) 
    339339#define VRDP_USB_XFER_BU    (11) 
    340 #define VRDP_USB_XFER_ERR   (12) /* VBox protocol error. */  
     340#define VRDP_USB_XFER_ERR   (12) /* VBox protocol error. */ 
    341341 
    342342#define VRDP_USB_REAP_FLAG_CONTINUED (0x0) 
     
    472472{ 
    473473    uint8_t flags; 
    474     uint32_t u32Version; /* This field presents only if the VRDP_USB_CAPS2_FLAG_VERSION flag is set. */  
     474    uint32_t u32Version; /* This field presents only if the VRDP_USB_CAPS2_FLAG_VERSION flag is set. */ 
    475475} VRDPUSBREQNEGOTIATERET_2; 
    476476#pragma pack() 
     
    611611     * @param hServer     The server instance handle. 
    612612     * @param u32ClientId The client identifier. 
    613      * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the  
     613     * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the 
    614614     *                    client before disconnecting. 
    615615     * 
     
    747747} VRDPENTRYPOINTS_1; 
    748748 
    749 /** The VRDP server entry points. Interface version 2.  
     749/** The VRDP server entry points. Interface version 2. 
    750750 *  A new entry point VRDPRedirect has been added relative to version 1. 
    751751 */ 
     
    778778     * @param hServer     The server instance handle. 
    779779     * @param u32ClientId The client identifier. 
    780      * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the  
     780     * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the 
    781781     *                    client before disconnecting. 
    782782     * 
     
    10121012 
    10131013    /* A client is logging in, the application must decide whether 
    1014      * to let to connect the client. The server will drop the connection,  
     1014     * to let to connect the client. The server will drop the connection, 
    10151015     * when an error code is returned by the callback. 
    10161016     * 
     
    11511151    DECLR3CALLBACKMEMBER(void, VRDPCallbackVideoModeHint,(void *pvCallback, 
    11521152                                                        unsigned cWidth, 
    1153                                                         unsigned cHeight,  
     1153                                                        unsigned cHeight, 
    11541154                                                        unsigned cBitsPerPixel, 
    11551155                                                        unsigned uScreenId)); 
  • trunk/include/VBox/vrdpusb.h

    r8155 r13832  
    3838# error "There are no VRDP APIs available in Ring-0 Host Context!" 
    3939#endif 
    40 #ifdef IN_G
     40#ifdef IN_R
    4141# error "There are no VRDP APIs available Guest Context!" 
    4242#endif 
  • trunk/include/iprt/asmdefs.mac

    r9223 r13832  
    268268; Defines the host architechture bit count. 
    269269%ifndef HC_ARCH_BITS 
    270  %ifndef IN_G
     270 %ifndef IN_R
    271271  %define HC_ARCH_BITS ARCH_BITS 
    272272 %else 
     
    298298; Defines the guest architechture bit count. 
    299299%ifndef GC_ARCH_BITS 
    300  %ifdef IN_G
     300 %ifdef IN_R
    301301  %define GC_ARCH_BITS ARCH_BITS 
    302302 %else 
     
    480480; The size in bytes of a pointer in the current context. 
    481481 
    482 %ifdef IN_G
     482%ifdef IN_R
    483483 %define RTCCPTR_DEF        RTRCPTR_DEF 
    484484 %define RTCCPTR_RES        RTRCPTR_RES 
  • trunk/include/iprt/cdefs.h

    r13211 r13832  
    7777#define IN_RING0 
    7878#define IN_RING3 
    79 #define IN_GC 
     79#define IN_RC 
     80#define IN_RC 
    8081#define IN_RT_GC 
    8182#define IN_RT_R0 
     
    142143 */ 
    143144 
    144 /** @def IN_G
     145/** @def IN_R
    145146 * Used to indicate that we're compiling code which is running 
    146  * in Guest Context (implies R0). 
    147  */ 
    148 #if !defined(IN_RING3) && !defined(IN_RING0) && !defined(IN_GC) 
    149 # error "You must defined which context the compiled code should run in; IN_RING3, IN_RING0 or IN_GC" 
    150 #endif 
    151 #if (defined(IN_RING3) && (defined(IN_RING0) || defined(IN_GC)) ) \ 
    152  || (defined(IN_RING0) && (defined(IN_RING3) || defined(IN_GC)) ) \ 
    153  || (defined(IN_GC)    && (defined(IN_RING3) || defined(IN_RING0)) ) 
    154 # error "Only one of the IN_RING3, IN_RING0, IN_GC defines should be defined." 
     147 * in the Raw-mode Context (implies R0). 
     148 */ 
     149#if !defined(IN_RING3) && !defined(IN_RING0) && !defined(IN_RC) && !defined(IN_RC) 
     150# error "You must defined which context the compiled code should run in; IN_RING3, IN_RING0 or IN_RC" 
     151#endif 
     152#if (defined(IN_RING3) && (defined(IN_RING0) || defined(IN_RC)) ) \ 
     153 || (defined(IN_RING0) && (defined(IN_RING3) || defined(IN_RC)) ) \ 
     154 || (defined(IN_RC)    && (defined(IN_RING3) || defined(IN_RING0)) ) 
     155# error "Only one of the IN_RING3, IN_RING0, IN_RC defines should be defined." 
    155156#endif 
    156157 
     
    171172 */ 
    172173#if !defined(HC_ARCH_BITS) || defined(DOXYGEN_RUNNING) 
    173 # ifndef IN_G
     174# ifndef IN_R
    174175#  define HC_ARCH_BITS ARCH_BITS 
    175176# else 
     
    215216 */ 
    216217#if !defined(GC_ARCH_BITS) || defined(DOXYGEN_RUNNING) 
    217 # ifdef IN_G
     218# ifdef IN_R
    218219#  define GC_ARCH_BITS ARCH_BITS 
    219220# else 
     
    231232 * @remark  For pointers used only in one context use RCPTRTYPE(), R3R0PTRTYPE(), R3PTRTYPE() or R0PTRTYPE(). 
    232233 */ 
    233 #ifdef IN_G
     234#ifdef IN_R
    234235# define CTXTYPE(GCType, R3Type, R0Type)  GCType 
    235236#elif defined(IN_RING3) 
     
    292293 * @deprecated Use CTX_SUFF. Do NOT use this for new code. 
    293294 */ 
    294 #ifdef IN_G
     295#ifdef IN_R
    295296# define CTXSUFF(var)       var##GC 
    296297# define OTHERCTXSUFF(var)  var##HC 
     
    308309 * @deprecated Use CTX_SUFF. Do NOT use this for new code. 
    309310 */ 
    310 #ifdef IN_G
     311#ifdef IN_R
    311312# define CTXALLSUFF(var)    var##GC 
    312313#elif defined(IN_RING0) 
     
    325326 * @remark  This will replace CTXALLSUFF and CTXSUFF before long. 
    326327 */ 
    327 #ifdef IN_G
     328#ifdef IN_R
    328329# define CTX_SUFF(var)      var##RC 
    329330#elif defined(IN_RING0) 
     
    367368 * @deprecated use CTX_MID or CTX_MID_Z 
    368369 */ 
    369 #ifdef IN_G
     370#ifdef IN_R
    370371# define CTXMID(first, last)        first##GC##last 
    371372# define OTHERCTXMID(first, last)   first##HC##last 
     
    384385 * @deprecated use CTX_MID or CTX_MID_Z 
    385386 */ 
    386 #ifdef IN_G
     387#ifdef IN_R
    387388# define CTXALLMID(first, last)     first##GC##last 
    388389#elif defined(IN_RING0) 
     
    400401 * @param   last    Surname. 
    401402 */ 
    402 #ifdef IN_G
     403#ifdef IN_R
    403404# define CTX_MID(first, last)       first##RC##last 
    404405#elif defined(IN_RING0) 
     
    466467 * @see R3STRING, R0STRING 
    467468 */ 
    468 #ifdef IN_G
     469#ifdef IN_R
    469470# define RCSTRING(pRCString)    (pRCString) 
    470471#else 
     
    611612 * @param   args    The argument list enclosed in parentheses. 
    612613 */ 
    613 #ifdef IN_G
     614#ifdef IN_R
    614615# define DECLRCCALLBACKMEMBER(type, name, args)  type (RTCALL * name) args 
    615616#else 
  • trunk/include/iprt/initterm.h

    r13813 r13832  
    117117#endif 
    118118 
    119 #ifdef IN_G
     119#ifdef IN_R
    120120/** 
    121121 * Initializes the raw-mode context runtime library. 
  • trunk/include/iprt/log.h

    r13717 r13832  
    148148 
    149149/** Logger structure. */ 
    150 #ifdef IN_G
     150#ifdef IN_R
    151151typedef struct RTLOGGERRC RTLOGGER; 
    152152#else 
     
    232232 
    233233 
    234 #ifndef IN_G
     234#ifndef IN_R
    235235/** 
    236236 * Logger instance structure. 
     
    10051005 
    10061006 
    1007 #ifndef IN_G
     1007#ifndef IN_R
    10081008/** 
    10091009 * Sets the default release logger instance. 
     
    10131013 */ 
    10141014RTDECL(PRTLOGGER) RTLogRelSetDefaultInstance(PRTLOGGER pLogger); 
    1015 #endif /* !IN_GC */ 
     1015#endif /* !IN_RC */ 
    10161016 
    10171017/** 
     
    12101210RTDECL(PRTLOGGER)   RTLogDefaultInstance(void); 
    12111211 
    1212 #ifndef IN_G
     1212#ifndef IN_R
    12131213/** 
    12141214 * Sets the default logger instance. 
     
    12181218 */ 
    12191219RTDECL(PRTLOGGER) RTLogSetDefaultInstance(PRTLOGGER pLogger); 
    1220 #endif /* !IN_GC */ 
     1220#endif /* !IN_RC */ 
    12211221 
    12221222#ifdef IN_RING0 
     
    12531253 
    12541254 
    1255 #ifndef IN_G
     1255#ifndef IN_R
    12561256/** 
    12571257 * Creates the default logger instance for a iprt users. 
     
    14111411 */ 
    14121412RTDECL(int) RTLogGroupSettings(PRTLOGGER pLogger, const char *pszVar); 
    1413 #endif /* !IN_GC */ 
     1413#endif /* !IN_RC */ 
    14141414 
    14151415/** 
  • trunk/include/iprt/mem.h

    r13718 r13832  
    3939 
    4040 
    41 #ifdef IN_G
     41#ifdef IN_R
    4242# error "There are no RTMem APIs available Guest Context!" 
    4343#endif 
  • trunk/include/iprt/runtime.h

    r12547 r13832  
    3636#include <iprt/initterm.h> 
    3737 
    38 #ifndef IN_G
     38#ifndef IN_R
    3939# include <iprt/alloc.h> 
    4040#endif 
     
    4747#include <iprt/dir.h> 
    4848#include <iprt/err.h> 
    49 #ifndef IN_G
     49#ifndef IN_R
    5050# include <iprt/file.h> 
    5151# include <iprt/fs.h> 
     
    5555#include <iprt/log.h> 
    5656#include <iprt/md5.h> 
    57 #ifndef IN_G
     57#ifndef IN_R
    5858# include <iprt/mem.h> 
    5959# include <iprt/mp.h> 
     
    6666#include <iprt/system.h> 
    6767#include <iprt/table.h> 
    68 #ifndef IN_G
     68#ifndef IN_R
    6969# include <iprt/thread.h> 
    7070#endif 
  • trunk/include/iprt/thread.h

    r13658 r13832  
    3535#include <iprt/stdarg.h> 
    3636 
    37 #ifdef IN_G
     37#ifdef IN_R
    3838# error "There are no threading APIs available Guest Context!" 
    3939#endif 
  • trunk/include/iprt/time.h

    r13633 r13832  
    836836#endif 
    837837 
    838 #ifndef IN_G
     838#ifndef IN_R
    839839/** 
    840840 * The RC layout of the RTTIMENANOTSDATA structure. 
  • trunk/include/iprt/types.h

    r13593 r13832  
    622622 
    623623/** HC pointer. */ 
    624 #ifndef IN_G
     624#ifndef IN_R
    625625typedef void *          RTHCPTR; 
    626626#else 
     
    914914 * HC and void pointer in RC. 
    915915 */ 
    916 #ifdef IN_G
     916#ifdef IN_R
    917917typedef void *          RTRCPTR; 
    918918#else 
     
    959959 
    960960/** Current Context Physical Memory Address.*/ 
    961 #ifdef IN_G
     961#ifdef IN_R
    962962typedef RTGCPHYS RTCCPHYS; 
    963963#else 
     
    973973 * to the NULL pointer. 
    974974 */ 
    975 #ifdef IN_G
     975#ifdef IN_R
    976976# define NIL_RTCCPHYS   NIL_RTGCPHYS 
    977977#else 
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r13429 r13832  
    320320PDMBOTHCBDECL(int) vgaIOPortReadBIOS(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb); 
    321321PDMBOTHCBDECL(int) vgaIOPortWriteBIOS(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb); 
    322 #ifdef IN_G
     322#ifdef IN_R
    323323PDMBOTHCBDECL(int) vgaGCLFBAccessHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser); 
    324324#endif 
     
    685685        s->sr[s->sr_index] = val & sr_mask[s->sr_index]; 
    686686 
    687 #ifndef IN_G
     687#ifndef IN_R
    688688        /* The VGA region is (could be) affected by this change; reset all aliases we've created. */ 
    689689        if (    s->sr_index == 4 /* mode */ 
     
    725725        s->gr[s->gr_index] = val & gr_mask[s->gr_index]; 
    726726 
    727 #ifndef IN_G
     727#ifndef IN_R
    728728        /* The VGA region is (could be) affected by this change; reset all aliases we've created. */ 
    729729        if (s->gr_index == 6 /* memory map mode */) 
     
    907907            s->bank_offset = (val << 16); 
    908908 
    909 #ifndef IN_G
     909#ifndef IN_R
    910910            /* The VGA region is (could be) affected by this change; reset all aliases we've created. */ 
    911911            if (s->fRemappedVGA) 
     
    11491149    } 
    11501150 
    1151 #ifdef IN_G
     1151#ifdef IN_R
    11521152    if (addr >= VGA_MAPPING_SIZE) 
    11531153        return VINF_IOM_HC_MMIO_WRITE; 
     
    11841184#ifndef VBOX 
    11851185        s->latch = ((uint32_t *)s->vram_ptr)[addr]; 
    1186 #else /* VBOX && IN_GC */ 
     1186#else /* VBOX && IN_RC */ 
    11871187        s->latch = ((uint32_t *)s->CTX_SUFF(vram_ptr))[addr]; 
    1188 #endif /* VBOX && IN_GC */ 
     1188#endif /* VBOX && IN_RC */ 
    11891189 
    11901190        if (!(s->gr[5] & 0x08)) { 
     
    12861286            s->vram_ptr[addr] = val; 
    12871287#else /* VBOX */ 
    1288 # ifdef IN_G
     1288# ifdef IN_R
    12891289            if (addr >= VGA_MAPPING_SIZE) 
    12901290                return VINF_IOM_HC_MMIO_WRITE; 
     
    13371337            s->vram_ptr[addr] = val; 
    13381338#else /* VBOX */ 
    1339 #ifdef IN_G
     1339#ifdef IN_R
    13401340            if (addr >= VGA_MAPPING_SIZE) 
    13411341                return VINF_IOM_HC_MMIO_WRITE; 
     
    13611361        } 
    13621362    } else { 
    1363 #ifdef IN_G
     1363#ifdef IN_R
    13641364        if (addr * 4 >= VGA_MAPPING_SIZE) 
    13651365            return VINF_IOM_HC_MMIO_WRITE; 
     
    29592959#endif 
    29602960 
    2961 #endif /* !VBOX || !IN_GC || !IN_RING0 */ 
     2961#endif /* !VBOX || !IN_RC || !IN_RING0 */ 
    29622962 
    29632963 
     
    30783078    if (cb == 2 || cb == 4) 
    30793079    { 
    3080 //#ifdef IN_G
     3080//#ifdef IN_R
    30813081//        /* 
    30823082//         * The VBE_DISPI_INDEX_ENABLE memsets the entire frame buffer. 
     
    33203320    if (pThis->sr[4] & 0x08) { 
    33213321        /* chain 4 mode : simplest access */ 
    3322 #ifdef IN_G
     3322#ifdef IN_R
    33233323        if (GCPhysAddr + cItems * cbItem >= VGA_MAPPING_SIZE) 
    33243324            return VINF_IOM_HC_MMIO_WRITE; 
     
    33433343    } else if (pThis->gr[5] & 0x10) { 
    33443344        /* odd/even mode (aka text mode mapping) */ 
    3345 #ifdef IN_G
     3345#ifdef IN_R
    33463346        if (GCPhysAddr * 2 + cItems * cbItem >= VGA_MAPPING_SIZE) 
    33473347            return VINF_IOM_HC_MMIO_WRITE; 
     
    33653365            } 
    33663366    } else { 
    3367 #ifdef IN_G
     3367#ifdef IN_R
    33683368        if (GCPhysAddr + cItems * cbItem >= VGA_MAPPING_SIZE) 
    33693369            return VINF_IOM_HC_MMIO_WRITE; 
     
    36493649 
    36503650 
    3651 #ifdef IN_G
     3651#ifdef IN_R
    36523652/** 
    36533653 * #PF Handler for VBE LFB access. 
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r13519 r13832  
    185185 
    186186typedef uint32_t PhysApicId; 
    187 typedef uint32_t LogApicId;  
     187typedef uint32_t LogApicId; 
    188188#endif 
    189189 
     
    194194    uint32_t apicbase; 
    195195#ifdef VBOX 
    196     /* Task priority register (interrupt level) */  
     196    /* Task priority register (interrupt level) */ 
    197197    uint32_t   tpr; 
    198198    /* Logical APIC id */ 
     
    324324                         uint8_t delivery_mode, uint8_t vector_num, 
    325325                         uint8_t polarity, uint8_t trigger_mode); 
    326 static void apic_timer_update(APICDeviceInfo* dev, APICState *s,  
     326static void apic_timer_update(APICDeviceInfo* dev, APICState *s, 
    327327                              int64_t current_time); 
    328328static int apic_get_arb_pri(APICState *s); 
     
    538538    /* We cannot change if this CPU is BSP or not by writing t