Changeset 11642 in vbox for trunk/include
- Timestamp:
- Aug 26, 2008 7:37:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r10930 r11642 47 47 48 48 /** Hypervisor linear pointer size type */ 49 /* @todo support 64 bits virtual addresses (interface change) */ 50 typedef RTGCPTR 32 vmmDevHypPtr;49 typedef RTGCPTR32 VMMDEVHYPPTR32; 50 typedef RTGCPTR64 VMMDEVHYPPTR64; 51 51 /** Hypervisor physical pointer size type */ 52 /* @todo support 64 bits physical addresses (interface change) */ 53 typedef RTGCPHYS32 vmmDevHypPhys; 52 typedef RTGCPHYS32 VMMDEVHYPPHYS32; 53 typedef 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 54 62 55 63 #if defined(RT_OS_LINUX) … … 362 370 VMMDevRequestHeader header; 363 371 /** guest virtual address of proposed hypervisor start */ 364 vmmDevHypPtr hypervisorStart; 372 /** TODO: Make this 64-bit compatible */ 373 VMMDEVHYPPTR32 hypervisorStart; 365 374 /** hypervisor size in bytes */ 366 375 uint32_t hypervisorSize; … … 707 716 union 708 717 { 709 vmmDevHypPhysphysAddr;710 vmmDevHypPtrlinearAddr;718 VMMDEVHYPPHYS32 physAddr; 719 VMMDEVHYPPTR32 linearAddr; 711 720 } u; 712 721 } Pointer; … … 727 736 union 728 737 { 729 uint64_tphysAddr;730 uint64_tlinearAddr;738 VMMDEVHYPPHYS64 physAddr; 739 VMMDEVHYPPTR64 linearAddr; 731 740 } u; 732 741 } Pointer; 733 742 } u; 734 743 } HGCMFunctionParameter64; 735 #else 744 #else /* !VBOX_WITH_64_BITS_GUESTS */ 736 745 typedef struct _HGCMFUNCTIONPARAMETER 737 746 { … … 747 756 union 748 757 { 749 vmmDevHypPhysphysAddr;750 vmmDevHypPtrlinearAddr;758 VMMDEVHYPPHYS32 physAddr; 759 VMMDEVHYPPTR32 linearAddr; 751 760 } u; 752 761 } Pointer; 753 762 } u; 754 763 } HGCMFunctionParameter; 755 #endif /* VBOX_WITH_64_BITS_GUESTS */764 #endif /* !VBOX_WITH_64_BITS_GUESTS */ 756 765 757 766
Note:
See TracChangeset
for help on using the changeset viewer.