VirtualBox

Changeset 9145 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 27, 2008 8:36:18 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31276
Message:

More 64 bits guest updates

Location:
trunk/include/iprt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asmdefs.mac

    r8260 r9145  
    502502;; @def RTGCPHYS_DEF
    503503; The pesudo-instruction used to declare an initialized guest physical address.
    504 %define RTGCPHYS_DEF    dd
     504%define RTGCPHYS_DEF    dq
    505505
    506506;; @def RTGCPTR_RES
    507507; The pesudo-instruction used to declare (=reserve space for) an uninitialized
    508508; guest physical address variable
    509 %define RTGCPHYS_RES    resd
     509%define RTGCPHYS_RES    resq
    510510
    511511;; @def RTGCPTR_PRE
    512512; The memory operand prefix used for a guest physical address.
    513 %define RTGCPHYS_PRE    dword
     513%define RTGCPHYS_PRE    qword
    514514
    515515;; @def RTGCPHYS_CB
    516516; The size in bytes of a guest physical address.
    517 %define RTGCPHYS_CB     4
     517%define RTGCPHYS_CB     8
    518518
    519519
  • trunk/include/iprt/cdefs.h

    r8614 r9145  
    167167
    168168/** @def HC_ARCH_BITS
    169  * Defines the host architechture bit count.
     169 * Defines the host architecture bit count.
    170170 */
    171171#if !defined(HC_ARCH_BITS) || defined(DOXYGEN_RUNNING)
     
    178178
    179179/** @def R3_ARCH_BITS
    180  * Defines the host ring-3 architechture bit count.
     180 * Defines the host ring-3 architecture bit count.
    181181 */
    182182#if !defined(R3_ARCH_BITS) || defined(DOXYGEN_RUNNING)
     
    189189
    190190/** @def R0_ARCH_BITS
    191  * Defines the host ring-0 architechture bit count.
     191 * Defines the host ring-0 architecture bit count.
    192192 */
    193193#if !defined(R0_ARCH_BITS) || defined(DOXYGEN_RUNNING)
     
    200200
    201201/** @def GC_ARCH_BITS
    202  * Defines the guest architechture bit count.
     202 * Defines the guest architecture bit count.
    203203 */
    204204#if !defined(GC_ARCH_BITS) || defined(DOXYGEN_RUNNING)
  • trunk/include/iprt/types.h

    r8924 r9145  
    804804#define NIL_RTGCPHYS64     (~(RTGCPHYS64)0)
    805805
    806 /** Guest context pointer.
    807  * Keep in mind that this type is an unsigned integer in
    808  * HC and void pointer in GC.
    809  */
    810 #ifdef IN_GC
    811 typedef void           *RTGCPTR;
    812 #else
    813 typedef RTGCUINTPTR     RTGCPTR;
    814 #endif
    815 /** Pointer to a guest context pointer. */
    816 typedef RTGCPTR        *PRTGCPTR;
    817 /** Pointer to a const guest context pointer. */
    818 typedef const RTGCPTR  *PCRTGCPTR;
    819 /** @def NIL_RTGCPTR
    820  * NIL GC pointer.
    821  */
    822 #define NIL_RTGCPTR     ((RTGCPTR)0)
    823 
    824806/** Guest context pointer, 32 bits.
    825807 * Keep in mind that this type is an unsigned integer in
     
    852834#define NIL_RTGCPTR64   ((RTGCPTR64)0)
    853835
     836/** Guest context pointer.
     837 * Keep in mind that this type is an unsigned integer in
     838 * HC and void pointer in GC.
     839 */
     840#if GC_ARCH_BITS == 64
     841typedef RTGCPTR64       RTGCPTR;
     842/** Pointer to a guest context pointer. */
     843typedef PRTGCPTR64      PRTGCPTR;
     844/** Pointer to a const guest context pointer. */
     845typedef PCRTGCPTR64    PCRTGCPTR;
     846/** @def NIL_RTGCPTR
     847 * NIL GC pointer.
     848 */
     849#define NIL_RTGCPTR     NIL_RTGCPTR64
     850#elif GC_ARCH_BITS == 32
     851typedef RTGCPTR32       RTGCPTR;
     852/** Pointer to a guest context pointer. */
     853typedef PRTGCPTR32      PRTGCPTR;
     854/** Pointer to a const guest context pointer. */
     855typedef PCRTGCPTR32    PCRTGCPTR;
     856/** @def NIL_RTGCPTR
     857 * NIL GC pointer.
     858 */
     859#define NIL_RTGCPTR     NIL_RTGCPTR32
     860#else
     861# error "Unsupported GC_ARCH_BITS!"
     862#endif
     863
    854864/** Unsigned integer register in the guest context. */
    855 #if GC_ARCH_BITS == 32
     865#if GC_ARCH_BITS == 64
     866typedef uint64_t            RTGCUINTREG;
     867#elif GC_ARCH_BITS == 32
    856868typedef uint32_t            RTGCUINTREG;
    857 #elif GC_ARCH_BITS == 64
    858 typedef uint64_t            RTGCUINTREG;
    859869#else
    860870# error "Unsupported GC_ARCH_BITS!"
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