Changeset 13832
- Timestamp:
- 11/05/08 03:01:12 (2 months ago)
- Files:
-
- trunk/Config.kmk (modified) (1 diff)
- trunk/include/VBox/cpum.h (modified) (2 diffs)
- trunk/include/VBox/dbgf.h (modified) (1 diff)
- trunk/include/VBox/em.h (modified) (2 diffs)
- trunk/include/VBox/hwaccm.h (modified) (1 diff)
- trunk/include/VBox/iom.h (modified) (2 diffs)
- trunk/include/VBox/mm.h (modified) (5 diffs)
- trunk/include/VBox/patm.h (modified) (1 diff)
- trunk/include/VBox/pdmapi.h (modified) (1 diff)
- trunk/include/VBox/pdmins.h (modified) (1 diff)
- trunk/include/VBox/pgm.h (modified) (7 diffs)
- trunk/include/VBox/rem.h (modified) (1 diff)
- trunk/include/VBox/trpm.h (modified) (1 diff)
- trunk/include/VBox/vm.h (modified) (5 diffs)
- trunk/include/VBox/vmapi.h (modified) (4 diffs)
- trunk/include/VBox/vmm.h (modified) (1 diff)
- trunk/include/VBox/vrdpapi.h (modified) (8 diffs)
- trunk/include/VBox/vrdpusb.h (modified) (1 diff)
- trunk/include/iprt/asmdefs.mac (modified) (3 diffs)
- trunk/include/iprt/cdefs.h (modified) (13 diffs)
- trunk/include/iprt/initterm.h (modified) (1 diff)
- trunk/include/iprt/log.h (modified) (8 diffs)
- trunk/include/iprt/mem.h (modified) (1 diff)
- trunk/include/iprt/runtime.h (modified) (4 diffs)
- trunk/include/iprt/thread.h (modified) (1 diff)
- trunk/include/iprt/time.h (modified) (1 diff)
- trunk/include/iprt/types.h (modified) (4 diffs)
- trunk/src/VBox/Devices/Graphics/DevVGA.cpp (modified) (15 diffs)
- trunk/src/VBox/Devices/PC/DevAPIC.cpp (modified) (10 diffs)
- trunk/src/VBox/Devices/Storage/DevATA.cpp (modified) (2 diffs)
- trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp (modified) (1 diff)
- trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp (modified) (1 diff)
- trunk/src/VBox/Disassembler/DisasmCore.cpp (modified) (5 diffs)
- trunk/src/VBox/Disassembler/DisasmInternal.h (modified) (1 diff)
- trunk/src/VBox/Runtime/common/log/log.cpp (modified) (21 diffs)
- trunk/src/VBox/Runtime/common/log/logrel.cpp (modified) (4 diffs)
- trunk/src/VBox/Runtime/common/misc/sanity.h (modified) (3 diffs)
- trunk/src/VBox/Runtime/common/string/strformattype.cpp (modified) (3 diffs)
- trunk/src/VBox/Runtime/common/time/timesupA.asm (modified) (2 diffs)
- trunk/src/VBox/Runtime/common/time/timesupref.cpp (modified) (2 diffs)
- trunk/src/VBox/Runtime/include/internal/time.h (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstLdrObj.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/IOM.cpp (modified) (2 diffs)
- trunk/src/VBox/VMM/PATM/CSAMInternal.h (modified) (1 diff)
- trunk/src/VBox/VMM/PATM/PATMInternal.h (modified) (3 diffs)
- trunk/src/VBox/VMM/PATM/VMMAll/CSAMAll.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/PGMInternal.h (modified) (16 diffs)
- trunk/src/VBox/VMM/VMMAll/CPUMAllA.asm (modified) (2 diffs)
- trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp (modified) (4 diffs)
- trunk/src/VBox/VMM/VMMAll/EMAll.cpp (modified) (44 diffs)
- trunk/src/VBox/VMM/VMMAll/EMAllA.asm (modified) (3 diffs)
- trunk/src/VBox/VMM/VMMAll/HWACCMAll.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/VMMAll/IOMAll.cpp (modified) (2 diffs)
- trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp (modified) (16 diffs)
- trunk/src/VBox/VMM/VMMAll/MMAll.cpp (modified) (4 diffs)
- trunk/src/VBox/VMM/VMMAll/PDMAll.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/VMMAll/PDMAllQueue.cpp (modified) (4 diffs)
- trunk/src/VBox/VMM/VMMAll/PGMAll.cpp (modified) (10 diffs)
- trunk/src/VBox/VMM/VMMAll/PGMAllBth.h (modified) (7 diffs)
- trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp (modified) (3 diffs)
- trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp (modified) (16 diffs)
- trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp (modified) (14 diffs)
- trunk/src/VBox/VMM/VMMAll/REMAll.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/VMMAll/SELMAll.cpp (modified) (7 diffs)
- trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/VMMAll/TRPMAll.cpp (modified) (7 diffs)
- trunk/src/VBox/VMM/VMMAll/VMAll.cpp (modified) (2 diffs)
- trunk/src/VBox/VMM/VMMAll/VMMAll.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/VMMInternal.h (modified) (2 diffs)
- trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Config.kmk
r13812 r13832 1862 1862 TEMPLATE_VBOXGC_ASTOOL = $(VBOX_ASTOOL) 1863 1863 TEMPLATE_VBOXGC_ASFLAGS = $(VBOX_ASFLAGS32) 1864 TEMPLATE_VBOXGC_DEFS = IN_ GC $(ARCH_BITS_DEFS)1864 TEMPLATE_VBOXGC_DEFS = IN_RC $(ARCH_BITS_DEFS) 1865 1865 TEMPLATE_VBOXGC_SYSSUFF = .gc 1866 1866 TEMPLATE_VBOXGC_BLD_TRG_ARCH = x86 trunk/include/VBox/cpum.h
r13830 r13832 975 975 #endif /* IN_RING3 */ 976 976 977 #ifdef IN_ GC977 #ifdef IN_RC 978 978 /** @defgroup grp_cpum_gc The CPU Monitor(/Manager) API 979 979 * @ingroup grp_cpum … … 998 998 999 999 /** @} */ 1000 #endif /* IN_ GC */1000 #endif /* IN_RC */ 1001 1001 1002 1002 #ifdef IN_RING0 trunk/include/VBox/dbgf.h
r13005 r13832 45 45 */ 46 46 47 #ifdef IN_ GC47 #ifdef IN_RC 48 48 /** @addgroup grp_dbgf_gc The GC DBGF API 49 49 * @ingroup grp_dbgf trunk/include/VBox/em.h
r13778 r13832 202 202 203 203 204 #ifdef IN_ GC204 #ifdef IN_RC 205 205 /** @defgroup grp_em_gc The EM Guest Context API 206 206 * @ingroup grp_em … … 215 215 VMMRCDECL(uint32_t) EMGCEmulateXAdd(RTRCPTR pu32Param1, uint32_t *pu32Param2, size_t cbSize, uint32_t *pEflags); 216 216 /** @} */ 217 #endif /* IN_ GC */217 #endif /* IN_RC */ 218 218 219 219 /** @} */ trunk/include/VBox/hwaccm.h
r13800 r13832 69 69 VMMDECL(bool) HWACCMHasPendingIrq(PVM pVM); 70 70 71 #ifndef IN_ GC71 #ifndef IN_RC 72 72 VMMDECL(int) HWACCMFlushTLB(PVM pVM); 73 73 VMMDECL(int) HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys); trunk/include/VBox/iom.h
r13414 r13832 217 217 VMMDECL(int) IOMMMIOResetRegion(PVM pVM, RTGCPHYS GCPhys); 218 218 219 #ifdef IN_ GC219 #ifdef IN_RC 220 220 /** @defgroup grp_iom_gc The IOM Guest Context API 221 221 * @ingroup grp_iom … … 224 224 VMMRCDECL(int) IOMGCIOPortHandler(PVM pVM, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu); 225 225 /** @} */ 226 #endif /* IN_ GC */226 #endif /* IN_RC */ 227 227 228 228 trunk/include/VBox/mm.h
r13827 r13832 238 238 239 239 240 #ifndef IN_ GC240 #ifndef IN_RC 241 241 VMMDECL(void *) MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr); 242 242 #else … … 268 268 #endif 269 269 270 #ifndef IN_ GC270 #ifndef IN_RC 271 271 VMMDECL(RTRCPTR) MMHyperCCToRC(PVM pVM, void *pv); 272 272 #else … … 299 299 /** @def MMHYPER_RC_ASSERT_RCPTR 300 300 * 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. 302 302 * @thread The Emulation Thread. 303 303 */ 304 #ifdef IN_ GC304 #ifdef IN_RC 305 305 # define MMHYPER_RC_ASSERT_RCPTR(pVM, RCPtr) Assert(MMHyperIsInsideArea((pVM), (RTRCUINTPTR)(RCPtr)) || !(RCPtr)) 306 306 #else … … 405 405 406 406 407 #ifdef IN_ GC407 #ifdef IN_RC 408 408 /** @defgroup grp_mm_gc The MM Guest Context API 409 409 * @ingroup grp_mm … … 419 419 420 420 /** @} */ 421 #endif /* IN_ GC */421 #endif /* IN_RC */ 422 422 423 423 /** @} */ trunk/include/VBox/patm.h
r12989 r13832 292 292 #endif 293 293 294 #ifdef IN_ GC294 #ifdef IN_RC 295 295 /** @defgroup grp_patm_gc The Patch Manager API 296 296 * @ingroup grp_patm trunk/include/VBox/pdmapi.h
r13020 r13832 120 120 121 121 122 #ifdef IN_ GC122 #ifdef IN_RC 123 123 /** @defgroup grp_pdm_gc The PDM Guest Context API 124 124 * @ingroup grp_pdm trunk/include/VBox/pdmins.h
r13005 r13832 39 39 * Macro for declaring a callback which is static in HC and exported in GC. 40 40 */ 41 #if defined(IN_ GC) || defined(IN_RING0)41 #if defined(IN_RC) || defined(IN_RING0) 42 42 # define PDMBOTHCBDECL(type) DECLEXPORT(type) 43 43 #else trunk/include/VBox/pgm.h
r13778 r13832 385 385 { 386 386 /** @todo see PGMPhysIsPageMappingLockValid for possibly incorrect assumptions */ 387 #ifdef IN_ GC387 #ifdef IN_RC 388 388 /** Just a dummy for the time being. */ 389 389 uint32_t u32Dummy; … … 413 413 { 414 414 /** @todo -> complete/change this */ 415 #ifdef IN_ GC415 #ifdef IN_RC 416 416 return !!(pLock->u32Dummy); 417 417 #else … … 426 426 VMMDECL(void) PGMPhysRead(PVM pVM, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead); 427 427 VMMDECL(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. */ 429 429 VMMDECL(int) PGMPhysSimpleReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb); 430 430 VMMDECL(int) PGMPhysSimpleWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb); … … 434 434 VMMDECL(int) PGMPhysWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb); 435 435 VMMDECL(int) PGMPhysSimpleDirtyWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb); 436 #endif /* !IN_ GC */436 #endif /* !IN_RC */ 437 437 VMMDECL(int) PGMPhysInterpretedRead(PVM pVM, PCPUMCTXCORE pCtxCore, void *pvDst, RTGCUINTPTR GCPtrSrc, size_t cb); 438 438 #ifdef VBOX_STRICT … … 442 442 #endif /* VBOX_STRICT */ 443 443 444 #if defined(IN_ GC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE)444 #if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE) 445 445 VMMDECL(int) PGMDynMapGCPage(PVM pVM, RTGCPHYS GCPhys, void **ppv); 446 446 VMMDECL(int) PGMDynMapGCPageOff(PVM pVM, RTGCPHYS GCPhys, void **ppv); … … 450 450 451 451 452 #ifdef IN_ GC452 #ifdef IN_RC 453 453 /** @defgroup grp_pgm_gc The PGM Guest Context API 454 454 * @ingroup grp_pgm … … 456 456 */ 457 457 /** @} */ 458 #endif /* IN_ GC */458 #endif /* IN_RC */ 459 459 460 460 trunk/include/VBox/rem.h
r13565 r13832 47 47 48 48 49 #if defined(IN_RING0) || defined(IN_ GC)49 #if defined(IN_RING0) || defined(IN_RC) 50 50 VMMDECL(int) REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage); 51 51 VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler); 52 52 VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM); 53 53 VMMDECL(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 */ 55 55 VMMDECL(void) REMFlushTBs(PVM pVM); 56 56 trunk/include/VBox/trpm.h
r13635 r13832 114 114 115 115 116 #ifdef IN_ GC116 #ifdef IN_RC 117 117 /** @defgroup grp_trpm_gc The TRPM Guest Context API 118 118 * @ingroup grp_trpm trunk/include/VBox/vm.h
r13831 r13832 359 359 * code to let threads other than EMT mess around with the VM. 360 360 */ 361 #ifdef IN_ GC361 #ifdef IN_RC 362 362 # define VM_IS_EMT(pVM) true 363 363 #elif defined(IN_RING0) … … 371 371 * Asserts that the current thread IS the emulation thread (EMT). 372 372 */ 373 #ifdef IN_ GC373 #ifdef IN_RC 374 374 # define VM_ASSERT_EMT(pVM) Assert(VM_IS_EMT(pVM)) 375 375 #elif defined(IN_RING0) … … 384 384 * Asserts that the current thread IS the emulation thread (EMT) and returns if it isn't. 385 385 */ 386 #ifdef IN_ GC386 #ifdef IN_RC 387 387 # define VM_ASSERT_EMT_RETURN(pVM, rc) AssertReturn(VM_IS_EMT(pVM), (rc)) 388 388 #elif defined(IN_RING0) … … 400 400 * @todo r=bird: See VMMGetCpuId(). 401 401 */ 402 #ifdef IN_ GC402 #ifdef IN_RC 403 403 # define VM_GET_VMCPUID(pVM) 0 404 404 #elif defined(IN_RING0) … … 788 788 789 789 790 #ifdef IN_ GC790 #ifdef IN_RC 791 791 __BEGIN_DECLS 792 792 trunk/include/VBox/vmapi.h
r13830 r13832 68 68 * @param pvInVM CC pointer within the VM. 69 69 */ 70 #ifdef IN_ GC70 #ifdef IN_RC 71 71 # define VM_R3_ADDR(pVM, pvInVM) ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) ) 72 72 #elif defined(IN_RING0) … … 85 85 * @param pvInVM CC pointer within the VM. 86 86 */ 87 #ifdef IN_ GC87 #ifdef IN_RC 88 88 # define VM_R0_ADDR(pVM, pvInVM) ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) ) 89 89 #elif defined(IN_RING3) … … 313 313 314 314 315 #ifndef IN_ GC315 #ifndef IN_RC 316 316 /** @defgroup grp_vmm_apis_hc VM Host Context API 317 317 * @ingroup grp_vm … … 425 425 426 426 427 #ifdef IN_ GC427 #ifdef IN_RC 428 428 /** @defgroup grp_vmm_apis_gc VM Guest Context APIs 429 429 * @ingroup grp_vm trunk/include/VBox/vmm.h
r13813 r13832 284 284 285 285 286 #ifdef IN_ GC286 #ifdef IN_RC 287 287 /** @defgroup grp_vmm_rc The VMM Raw-Mode Context API 288 288 * @ingroup grp_vmm trunk/include/VBox/vrdpapi.h
r12297 r13832 38 38 # error "There are no VRDP APIs available in Ring-0 Host Context!" 39 39 #endif 40 #ifdef IN_ GC40 #ifdef IN_RC 41 41 # error "There are no VRDP APIs available Guest Context!" 42 42 #endif … … 338 338 #define VRDP_USB_XFER_BO (10) 339 339 #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. */ 341 341 342 342 #define VRDP_USB_REAP_FLAG_CONTINUED (0x0) … … 472 472 { 473 473 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. */ 475 475 } VRDPUSBREQNEGOTIATERET_2; 476 476 #pragma pack() … … 611 611 * @param hServer The server instance handle. 612 612 * @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 614 614 * client before disconnecting. 615 615 * … … 747 747 } VRDPENTRYPOINTS_1; 748 748 749 /** The VRDP server entry points. Interface version 2. 749 /** The VRDP server entry points. Interface version 2. 750 750 * A new entry point VRDPRedirect has been added relative to version 1. 751 751 */ … … 778 778 * @param hServer The server instance handle. 779 779 * @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 781 781 * client before disconnecting. 782 782 * … … 1012 1012 1013 1013 /* 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, 1015 1015 * when an error code is returned by the callback. 1016 1016 * … … 1151 1151 DECLR3CALLBACKMEMBER(void, VRDPCallbackVideoModeHint,(void *pvCallback, 1152 1152 unsigned cWidth, 1153 unsigned cHeight, 1153 unsigned cHeight, 1154 1154 unsigned cBitsPerPixel, 1155 1155 unsigned uScreenId)); trunk/include/VBox/vrdpusb.h
r8155 r13832 38 38 # error "There are no VRDP APIs available in Ring-0 Host Context!" 39 39 #endif 40 #ifdef IN_ GC40 #ifdef IN_RC 41 41 # error "There are no VRDP APIs available Guest Context!" 42 42 #endif trunk/include/iprt/asmdefs.mac
r9223 r13832 268 268 ; Defines the host architechture bit count. 269 269 %ifndef HC_ARCH_BITS 270 %ifndef IN_ GC270 %ifndef IN_RC 271 271 %define HC_ARCH_BITS ARCH_BITS 272 272 %else … … 298 298 ; Defines the guest architechture bit count. 299 299 %ifndef GC_ARCH_BITS 300 %ifdef IN_ GC300 %ifdef IN_RC 301 301 %define GC_ARCH_BITS ARCH_BITS 302 302 %else … … 480 480 ; The size in bytes of a pointer in the current context. 481 481 482 %ifdef IN_ GC482 %ifdef IN_RC 483 483 %define RTCCPTR_DEF RTRCPTR_DEF 484 484 %define RTCCPTR_RES RTRCPTR_RES trunk/include/iprt/cdefs.h
r13211 r13832 77 77 #define IN_RING0 78 78 #define IN_RING3 79 #define IN_GC 79 #define IN_RC 80 #define IN_RC 80 81 #define IN_RT_GC 81 82 #define IN_RT_R0 … … 142 143 */ 143 144 144 /** @def IN_ GC145 /** @def IN_RC 145 146 * Used to indicate that we're compiling code which is running 146 * in GuestContext (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." 155 156 #endif 156 157 … … 171 172 */ 172 173 #if !defined(HC_ARCH_BITS) || defined(DOXYGEN_RUNNING) 173 # ifndef IN_ GC174 # ifndef IN_RC 174 175 # define HC_ARCH_BITS ARCH_BITS 175 176 # else … … 215 216 */ 216 217 #if !defined(GC_ARCH_BITS) || defined(DOXYGEN_RUNNING) 217 # ifdef IN_ GC218 # ifdef IN_RC 218 219 # define GC_ARCH_BITS ARCH_BITS 219 220 # else … … 231 232 * @remark For pointers used only in one context use RCPTRTYPE(), R3R0PTRTYPE(), R3PTRTYPE() or R0PTRTYPE(). 232 233 */ 233 #ifdef IN_ GC234 #ifdef IN_RC 234 235 # define CTXTYPE(GCType, R3Type, R0Type) GCType 235 236 #elif defined(IN_RING3) … … 292 293 * @deprecated Use CTX_SUFF. Do NOT use this for new code. 293 294 */ 294 #ifdef IN_ GC295 #ifdef IN_RC 295 296 # define CTXSUFF(var) var##GC 296 297 # define OTHERCTXSUFF(var) var##HC … … 308 309 * @deprecated Use CTX_SUFF. Do NOT use this for new code. 309 310 */ 310 #ifdef IN_ GC311 #ifdef IN_RC 311 312 # define CTXALLSUFF(var) var##GC 312 313 #elif defined(IN_RING0) … … 325 326 * @remark This will replace CTXALLSUFF and CTXSUFF before long. 326 327 */ 327 #ifdef IN_ GC328 #ifdef IN_RC 328 329 # define CTX_SUFF(var) var##RC 329 330 #elif defined(IN_RING0) … … 367 368 * @deprecated use CTX_MID or CTX_MID_Z 368 369 */ 369 #ifdef IN_ GC370 #ifdef IN_RC 370 371 # define CTXMID(first, last) first##GC##last 371 372 # define OTHERCTXMID(first, last) first##HC##last … … 384 385 * @deprecated use CTX_MID or CTX_MID_Z 385 386 */ 386 #ifdef IN_ GC387 #ifdef IN_RC 387 388 # define CTXALLMID(first, last) first##GC##last 388 389 #elif defined(IN_RING0) … … 400 401 * @param last Surname. 401 402 */ 402 #ifdef IN_ GC403 #ifdef IN_RC 403 404 # define CTX_MID(first, last) first##RC##last 404 405 #elif defined(IN_RING0) … … 466 467 * @see R3STRING, R0STRING 467 468 */ 468 #ifdef IN_ GC469 #ifdef IN_RC 469 470 # define RCSTRING(pRCString) (pRCString) 470 471 #else … … 611 612 * @param args The argument list enclosed in parentheses. 612 613 */ 613 #ifdef IN_ GC614 #ifdef IN_RC 614 615 # define DECLRCCALLBACKMEMBER(type, name, args) type (RTCALL * name) args 615 616 #else trunk/include/iprt/initterm.h
r13813 r13832 117 117 #endif 118 118 119 #ifdef IN_ GC119 #ifdef IN_RC 120 120 /** 121 121 * Initializes the raw-mode context runtime library. trunk/include/iprt/log.h
r13717 r13832 148 148 149 149 /** Logger structure. */ 150 #ifdef IN_ GC150 #ifdef IN_RC 151 151 typedef struct RTLOGGERRC RTLOGGER; 152 152 #else … … 232 232 233 233 234 #ifndef IN_ GC234 #ifndef IN_RC 235 235 /** 236 236 * Logger instance structure. … … 1005 1005 1006 1006 1007 #ifndef IN_ GC1007 #ifndef IN_RC 1008 1008 /** 1009 1009 * Sets the default release logger instance. … … 1013 1013 */ 1014 1014 RTDECL(PRTLOGGER) RTLogRelSetDefaultInstance(PRTLOGGER pLogger); 1015 #endif /* !IN_ GC */1015 #endif /* !IN_RC */ 1016 1016 1017 1017 /** … … 1210 1210 RTDECL(PRTLOGGER) RTLogDefaultInstance(void); 1211 1211 1212 #ifndef IN_ GC1212 #ifndef IN_RC 1213 1213 /** 1214 1214 * Sets the default logger instance. … … 1218 1218 */ 1219 1219 RTDECL(PRTLOGGER) RTLogSetDefaultInstance(PRTLOGGER pLogger); 1220 #endif /* !IN_ GC */1220 #endif /* !IN_RC */ 1221 1221 1222 1222 #ifdef IN_RING0 … … 1253 1253 1254 1254 1255 #ifndef IN_ GC1255 #ifndef IN_RC 1256 1256 /** 1257 1257 * Creates the default logger instance for a iprt users. … … 1411 1411 */ 1412 1412 RTDECL(int) RTLogGroupSettings(PRTLOGGER pLogger, const char *pszVar); 1413 #endif /* !IN_ GC */1413 #endif /* !IN_RC */ 1414 1414 1415 1415 /** trunk/include/iprt/mem.h
r13718 r13832 39 39 40 40 41 #ifdef IN_ GC41 #ifdef IN_RC 42 42 # error "There are no RTMem APIs available Guest Context!" 43 43 #endif trunk/include/iprt/runtime.h
r12547 r13832 36 36 #include <iprt/initterm.h> 37 37 38 #ifndef IN_ GC38 #ifndef IN_RC 39 39 # include <iprt/alloc.h> 40 40 #endif … … 47 47 #include <iprt/dir.h> 48 48 #include <iprt/err.h> 49 #ifndef IN_ GC49 #ifndef IN_RC 50 50 # include <iprt/file.h> 51 51 # include <iprt/fs.h> … … 55 55 #include <iprt/log.h> 56 56 #include <iprt/md5.h> 57 #ifndef IN_ GC57 #ifndef IN_RC 58 58 # include <iprt/mem.h> 59 59 # include <iprt/mp.h> … … 66 66 #include <iprt/system.h> 67 67 #include <iprt/table.h> 68 #ifndef IN_ GC68 #ifndef IN_RC 69 69 # include <iprt/thread.h> 70 70 #endif trunk/include/iprt/thread.h
r13658 r13832 35 35 #include <iprt/stdarg.h> 36 36 37 #ifdef IN_ GC37 #ifdef IN_RC 38 38 # error "There are no threading APIs available Guest Context!" 39 39 #endif trunk/include/iprt/time.h
r13633 r13832 836 836 #endif 837 837 838 #ifndef IN_ GC838 #ifndef IN_RC 839 839 /** 840 840 * The RC layout of the RTTIMENANOTSDATA structure. trunk/include/iprt/types.h
r13593 r13832 622 622 623 623 /** HC pointer. */ 624 #ifndef IN_ GC624 #ifndef IN_RC 625 625 typedef void * RTHCPTR; 626 626 #else … … 914 914 * HC and void pointer in RC. 915 915 */ 916 #ifdef IN_ GC916 #ifdef IN_RC 917 917 typedef void * RTRCPTR; 918 918 #else … … 959 959 960 960 /** Current Context Physical Memory Address.*/ 961 #ifdef IN_ GC961 #ifdef IN_RC 962 962 typedef RTGCPHYS RTCCPHYS; 963 963 #else … … 973 973 * to the NULL pointer. 974 974 */ 975 #ifdef IN_ GC975 #ifdef IN_RC 976 976 # define NIL_RTCCPHYS NIL_RTGCPHYS 977 977 #else trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r13429 r13832 320 320 PDMBOTHCBDECL(int) vgaIOPortReadBIOS(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb); 321 321 PDMBOTHCBDECL(int) vgaIOPortWriteBIOS(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb); 322 #ifdef IN_ GC322 #ifdef IN_RC 323 323 PDMBOTHCBDECL(int) vgaGCLFBAccessHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser); 324 324 #endif … … 685 685 s->sr[s->sr_index] = val & sr_mask[s->sr_index]; 686 686 687 #ifndef IN_ GC687 #ifndef IN_RC 688 688 /* The VGA region is (could be) affected by this change; reset all aliases we've created. */ 689 689 if ( s->sr_index == 4 /* mode */ … … 725 725 s->gr[s->gr_index] = val & gr_mask[s->gr_index]; 726 726 727 #ifndef IN_ GC727 #ifndef IN_RC 728 728 /* The VGA region is (could be) affected by this change; reset all aliases we've created. */ 729 729 if (s->gr_index == 6 /* memory map mode */) … … 907 907 s->bank_offset = (val << 16); 908 908 909 #ifndef IN_ GC909 #ifndef IN_RC 910 910 /* The VGA region is (could be) affected by this change; reset all aliases we've created. */ 911 911 if (s->fRemappedVGA) … … 1149 1149 } 1150 1150 1151 #ifdef IN_ GC1151 #ifdef IN_RC 1152 1152 if (addr >= VGA_MAPPING_SIZE) 1153 1153 return VINF_IOM_HC_MMIO_WRITE; … … 1184 1184 #ifndef VBOX 1185 1185 s->latch = ((uint32_t *)s->vram_ptr)[addr]; 1186 #else /* VBOX && IN_ GC */1186 #else /* VBOX && IN_RC */ 1187 1187 s->latch = ((uint32_t *)s->CTX_SUFF(vram_ptr))[addr]; 1188 #endif /* VBOX && IN_ GC */1188 #endif /* VBOX && IN_RC */ 1189 1189 1190 1190 if (!(s->gr[5] & 0x08)) { … … 1286 1286 s->vram_ptr[addr] = val; 1287 1287 #else /* VBOX */ 1288 # ifdef IN_ GC1288 # ifdef IN_RC 1289 1289 if (addr >= VGA_MAPPING_SIZE) 1290 1290 return VINF_IOM_HC_MMIO_WRITE; … … 1337 1337 s->vram_ptr[addr] = val; 1338 1338 #else /* VBOX */ 1339 #ifdef IN_ GC1339 #ifdef IN_RC 1340 1340 if (addr >= VGA_MAPPING_SIZE) 1341 1341 return VINF_IOM_HC_MMIO_WRITE; … … 1361 1361 } 1362 1362 } else { 1363 #ifdef IN_ GC1363 #ifdef IN_RC 1364 1364 if (addr * 4 >= VGA_MAPPING_SIZE) 1365 1365 return VINF_IOM_HC_MMIO_WRITE; … … 2959 2959 #endif 2960 2960 2961 #endif /* !VBOX || !IN_ GC || !IN_RING0 */2961 #endif /* !VBOX || !IN_RC || !IN_RING0 */ 2962 2962 2963 2963 … … 3078 3078 if (cb == 2 || cb == 4) 3079 3079 { 3080 //#ifdef IN_ GC3080 //#ifdef IN_RC 3081 3081 // /* 3082 3082 // * The VBE_DISPI_INDEX_ENABLE memsets the entire frame buffer. … … 3320 3320 if (pThis->sr[4] & 0x08) { 3321 3321 /* chain 4 mode : simplest access */ 3322 #ifdef IN_ GC3322 #ifdef IN_RC 3323 3323 if (GCPhysAddr + cItems * cbItem >= VGA_MAPPING_SIZE) 3324 3324 return VINF_IOM_HC_MMIO_WRITE; … … 3343 3343 } else if (pThis->gr[5] & 0x10) { 3344 3344 /* odd/even mode (aka text mode mapping) */ 3345 #ifdef IN_ GC3345 #ifdef IN_RC 3346 3346 if (GCPhysAddr * 2 + cItems * cbItem >= VGA_MAPPING_SIZE) 3347 3347 return VINF_IOM_HC_MMIO_WRITE; … … 3365 3365 } 3366 3366 } else { 3367 #ifdef IN_ GC3367 #ifdef IN_RC 3368 3368 if (GCPhysAddr + cItems * cbItem >= VGA_MAPPING_SIZE) 3369 3369 return VINF_IOM_HC_MMIO_WRITE; … … 3649 3649 3650 3650 3651 #ifdef IN_ GC3651 #ifdef IN_RC 3652 3652 /** 3653 3653 * #PF Handler for VBE LFB access. trunk/src/VBox/Devices/PC/DevAPIC.cpp
r13519 r13832 185 185 186 186 typedef uint32_t PhysApicId; 187 typedef uint32_t LogApicId; 187 typedef uint32_t LogApicId; 188 188 #endif 189 189 … … 194 194 uint32_t apicbase; 195 195 #ifdef VBOX 196 /* Task priority register (interrupt level) */ 196 /* Task priority register (interrupt level) */ 197 197 uint32_t tpr; 198 198 /* Logical APIC id */ … … 324 324 uint8_t delivery_mode, uint8_t vector_num, 325 325 uint8_t polarity, uint8_t trigger_mode); 326 static void apic_timer_update(APICDeviceInfo* dev, APICState *s, 326 static void apic_timer_update(APICDeviceInfo* dev, APICState *s, 327 327 int64_t current_time); 328 328 static int apic_get_arb_pri(APICState *s); … … 538 538 /* We cannot change if this CPU is BSP or not by writing t

