VirtualBox

Ignore:
Timestamp:
May 29, 2008 9:38:38 AM (17 years ago)
Author:
vboxsync
Message:

Major changes for sizeof(RTGCPTR) == uint64_t.
Introduced RCPTRTYPE for pointers valid in raw mode only (RTGCPTR32).

Disabled by default. Enable by adding VBOX_WITH_64_BITS_GUESTS to your LocalConfig.kmk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/sanity.h

    r8245 r9212  
    4646# error "defined(IN_RING0) && ARCH_BITS != R0_ARCH_BITS"
    4747#endif
    48 #if defined(IN_GC) && ARCH_BITS != GC_ARCH_BITS
    49 # error "defined(IN_GC) && ARCH_BITS != GC_ARCH_BITS"
     48#if defined(IN_GC) && ARCH_BITS != 32
     49# error "defined(IN_GC) && ARCH_BITS != 32"
    5050#endif
    5151#if (defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS
    5252# error "(defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS"
    5353#endif
    54 #if defined(IN_GC) && GC_ARCH_BITS != ARCH_BITS
     54#if defined(IN_GC) && GC_ARCH_BITS != 64 && GC_ARCH_BITS != ARCH_BITS
    5555# error "defined(IN_GC) && GC_ARCH_BITS != ARCH_BITS"
    5656#endif
     
    124124#if GC_ARCH_BITS == 64
    125125
    126 AssertCompileSize(RTGCINT, 4);
    127 AssertCompileSize(RTGCUINT, 4);
     126AssertCompileSize(RTGCINT, 8);
     127AssertCompileSize(RTGCUINT, 8);
    128128AssertCompileSize(RTGCINTPTR, 8);
    129129AssertCompileSize(RTGCUINTPTR, 8);
     
    133133# ifdef IN_GC
    134134/*AssertCompileSize(RTCCINTREG, 8);*/
    135 AssertCompileSize(RTCCUINTREG, 8);
     135/* Hack alert: there is no such thing as a GC context when GC_ARCH_BITS == 64; it's still 32 bits */
     136AssertCompileSize(RTCCUINTREG, 4);
    136137# endif
    137138
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