VirtualBox

Changeset 11642 in vbox for trunk/include


Ignore:
Timestamp:
Aug 26, 2008 7:37:36 AM (16 years ago)
Author:
vboxsync
Message:

another guest additions 32/64 bit hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r10930 r11642  
    4747
    4848/** Hypervisor linear pointer size type */
    49 /* @todo support 64 bits virtual addresses (interface change) */
    50 typedef RTGCPTR32 vmmDevHypPtr;
     49typedef RTGCPTR32 VMMDEVHYPPTR32;
     50typedef RTGCPTR64 VMMDEVHYPPTR64;
    5151/** Hypervisor physical pointer size type */
    52 /* @todo support 64 bits physical addresses (interface change) */
    53 typedef RTGCPHYS32 vmmDevHypPhys;
     52typedef RTGCPHYS32 VMMDEVHYPPHYS32;
     53typedef RTGCPHYS64 VMMDEVHYPPHYS64;
     54
     55#if defined(VBOX_WITH_64_BITS_GUESTS) && defined(ARCH_BITS == 64)
     56# define VMMDEVHYPPTR  VMMDEVHYPPTR64
     57# define VMMDEVHYPPHYS VMMDEVHYPPHYS64
     58# else
     59# define VMMDEVHYPPTR  VMMDEVHYPPTR32
     60# define VMMDEVHYPPHYS VMMDEVHYPPHYS32
     61#endif
    5462
    5563#if defined(RT_OS_LINUX)
     
    362370    VMMDevRequestHeader header;
    363371    /** guest virtual address of proposed hypervisor start */
    364     vmmDevHypPtr hypervisorStart;
     372    /** TODO: Make this 64-bit compatible */
     373    VMMDEVHYPPTR32 hypervisorStart;
    365374    /** hypervisor size in bytes */
    366375    uint32_t hypervisorSize;
     
    707716            union
    708717            {
    709                 vmmDevHypPhys physAddr;
    710                 vmmDevHypPtr  linearAddr;
     718                VMMDEVHYPPHYS32 physAddr;
     719                VMMDEVHYPPTR32  linearAddr;
    711720            } u;
    712721        } Pointer;
     
    727736            union
    728737            {
    729                 uint64_t physAddr;
    730                 uint64_t linearAddr;
     738                VMMDEVHYPPHYS64 physAddr;
     739                VMMDEVHYPPTR64 linearAddr;
    731740            } u;
    732741        } Pointer;
    733742    } u;
    734743} HGCMFunctionParameter64;
    735 #else
     744#else /* !VBOX_WITH_64_BITS_GUESTS */
    736745typedef struct _HGCMFUNCTIONPARAMETER
    737746{
     
    747756            union
    748757            {
    749                 vmmDevHypPhys physAddr;
    750                 vmmDevHypPtr  linearAddr;
     758                VMMDEVHYPPHYS32 physAddr;
     759                VMMDEVHYPPTR32  linearAddr;
    751760            } u;
    752761        } Pointer;
    753762    } u;
    754763} HGCMFunctionParameter;
    755 #endif /* VBOX_WITH_64_BITS_GUESTS */
     764#endif /* !VBOX_WITH_64_BITS_GUESTS */
    756765
    757766
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