Changeset 9145 in vbox for trunk/include/iprt
- Timestamp:
- May 27, 2008 8:36:18 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31276
- Location:
- trunk/include/iprt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asmdefs.mac
r8260 r9145 502 502 ;; @def RTGCPHYS_DEF 503 503 ; The pesudo-instruction used to declare an initialized guest physical address. 504 %define RTGCPHYS_DEF d d504 %define RTGCPHYS_DEF dq 505 505 506 506 ;; @def RTGCPTR_RES 507 507 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 508 508 ; guest physical address variable 509 %define RTGCPHYS_RES res d509 %define RTGCPHYS_RES resq 510 510 511 511 ;; @def RTGCPTR_PRE 512 512 ; The memory operand prefix used for a guest physical address. 513 %define RTGCPHYS_PRE dword513 %define RTGCPHYS_PRE qword 514 514 515 515 ;; @def RTGCPHYS_CB 516 516 ; The size in bytes of a guest physical address. 517 %define RTGCPHYS_CB 4517 %define RTGCPHYS_CB 8 518 518 519 519 -
trunk/include/iprt/cdefs.h
r8614 r9145 167 167 168 168 /** @def HC_ARCH_BITS 169 * Defines the host architec hture bit count.169 * Defines the host architecture bit count. 170 170 */ 171 171 #if !defined(HC_ARCH_BITS) || defined(DOXYGEN_RUNNING) … … 178 178 179 179 /** @def R3_ARCH_BITS 180 * Defines the host ring-3 architec hture bit count.180 * Defines the host ring-3 architecture bit count. 181 181 */ 182 182 #if !defined(R3_ARCH_BITS) || defined(DOXYGEN_RUNNING) … … 189 189 190 190 /** @def R0_ARCH_BITS 191 * Defines the host ring-0 architec hture bit count.191 * Defines the host ring-0 architecture bit count. 192 192 */ 193 193 #if !defined(R0_ARCH_BITS) || defined(DOXYGEN_RUNNING) … … 200 200 201 201 /** @def GC_ARCH_BITS 202 * Defines the guest architec hture bit count.202 * Defines the guest architecture bit count. 203 203 */ 204 204 #if !defined(GC_ARCH_BITS) || defined(DOXYGEN_RUNNING) -
trunk/include/iprt/types.h
r8924 r9145 804 804 #define NIL_RTGCPHYS64 (~(RTGCPHYS64)0) 805 805 806 /** Guest context pointer.807 * Keep in mind that this type is an unsigned integer in808 * HC and void pointer in GC.809 */810 #ifdef IN_GC811 typedef void *RTGCPTR;812 #else813 typedef RTGCUINTPTR RTGCPTR;814 #endif815 /** 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_RTGCPTR820 * NIL GC pointer.821 */822 #define NIL_RTGCPTR ((RTGCPTR)0)823 824 806 /** Guest context pointer, 32 bits. 825 807 * Keep in mind that this type is an unsigned integer in … … 852 834 #define NIL_RTGCPTR64 ((RTGCPTR64)0) 853 835 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 841 typedef RTGCPTR64 RTGCPTR; 842 /** Pointer to a guest context pointer. */ 843 typedef PRTGCPTR64 PRTGCPTR; 844 /** Pointer to a const guest context pointer. */ 845 typedef PCRTGCPTR64 PCRTGCPTR; 846 /** @def NIL_RTGCPTR 847 * NIL GC pointer. 848 */ 849 #define NIL_RTGCPTR NIL_RTGCPTR64 850 #elif GC_ARCH_BITS == 32 851 typedef RTGCPTR32 RTGCPTR; 852 /** Pointer to a guest context pointer. */ 853 typedef PRTGCPTR32 PRTGCPTR; 854 /** Pointer to a const guest context pointer. */ 855 typedef 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 854 864 /** Unsigned integer register in the guest context. */ 855 #if GC_ARCH_BITS == 32 865 #if GC_ARCH_BITS == 64 866 typedef uint64_t RTGCUINTREG; 867 #elif GC_ARCH_BITS == 32 856 868 typedef uint32_t RTGCUINTREG; 857 #elif GC_ARCH_BITS == 64858 typedef uint64_t RTGCUINTREG;859 869 #else 860 870 # error "Unsupported GC_ARCH_BITS!"
Note:
See TracChangeset
for help on using the changeset viewer.