Changeset 9212 in vbox for trunk/include/iprt
- Timestamp:
- May 29, 2008 9:38:38 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31380
- Location:
- trunk/include/iprt
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r9183 r9212 3860 3860 3861 3861 # elif RT_INLINE_ASM_GNU_STYLE 3862 RT UINTREG uDummy;3862 RTCCUINTREG uDummy; 3863 3863 # ifdef RT_ARCH_AMD64 3864 3864 __asm__ __volatile__ ("rep stosq" … … 4129 4129 # else /* !RT_ARCH_AMD64 */ 4130 4130 # if RT_INLINE_ASM_GNU_STYLE 4131 RT UINTREG uDummy;4131 RTCCUINTREG uDummy; 4132 4132 __asm__ __volatile__("divl %3" 4133 4133 : "=a" (u32), "=d"(uDummy) … … 4163 4163 # else /* !RT_ARCH_AMD64 */ 4164 4164 # if RT_INLINE_ASM_GNU_STYLE 4165 RT UINTREG iDummy;4165 RTCCUINTREG iDummy; 4166 4166 __asm__ __volatile__("idivl %3" 4167 4167 : "=a" (i32), "=d"(iDummy) -
trunk/include/iprt/asmdefs.mac
r9145 r9212 429 429 %endif 430 430 431 %define RTGCPTR32_RES resd 432 %define RTGCPTR64_RES resq 433 431 434 ;; @def RTGCPTR_PRE 432 435 ; The memory operand prefix used for a pointer in the guest context. … … 504 507 %define RTGCPHYS_DEF dq 505 508 506 ;; @def RTGCP TR_RES509 ;; @def RTGCPHYS_RES 507 510 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 508 511 ; guest physical address variable -
trunk/include/iprt/cdefs.h
r9148 r9212 217 217 * @param R3Type The R3 type. 218 218 * @param R0Type The R0 type. 219 * @remark For pointers used only in one context use GCPTRTYPE(), R3R0PTRTYPE(), R3PTRTYPE() or R0PTRTYPE().219 * @remark For pointers used only in one context use RCPTRTYPE(), R3R0PTRTYPE(), R3PTRTYPE() or R0PTRTYPE(). 220 220 */ 221 221 #ifdef IN_GC … … 232 232 * @param GCType The GC type. 233 233 * @param HCType The HC type. 234 * @remark For pointers used only in one context use GCPTRTYPE(), R3R0PTRTYPE(), R3PTRTYPE() or R0PTRTYPE().234 * @remark For pointers used only in one context use RCPTRTYPE(), R3R0PTRTYPE(), R3PTRTYPE() or R0PTRTYPE(). 235 235 */ 236 236 #define GCTYPE(GCType, HCType) CTXTYPE(GCType, HCType, HCType) 237 237 238 /** @def GCPTRTYPE238 /** @def RCPTRTYPE 239 239 * Declare a pointer which is used in GC but appears in structure(s) used by 240 240 * both HC and GC. The main purpose is to make sure structures have the same … … 243 243 * @param GCType The GC type. 244 244 */ 245 #define GCPTRTYPE(GCType) CTXTYPE(GCType, RTGCPTR32, RTGCPTR32)245 #define RCPTRTYPE(GCType) CTXTYPE(GCType, RTGCPTR32, RTGCPTR32) 246 246 247 247 /** @def R3R0PTRTYPE -
trunk/include/iprt/log.h
r8964 r9212 193 193 typedef DECLCALLBACK(void) FNRTLOGFLUSHGC(PRTLOGGERGC pLogger); 194 194 /** Pointer to logger function. */ 195 typedef GCPTRTYPE(FNRTLOGFLUSHGC *) PFNRTLOGFLUSHGC;195 typedef RCPTRTYPE(FNRTLOGFLUSHGC *) PFNRTLOGFLUSHGC; 196 196 197 197 … … 212 212 * instance pointer onto the stack before jumping to the real logger function. 213 213 * A very unfortunate hack to work around the missing variadic macro support in C++. */ 214 GCPTRTYPE(PFNRTLOGGER) pfnLogger;214 RCPTRTYPE(PFNRTLOGGER) pfnLogger; 215 215 /** Pointer to the flush function. */ 216 216 PFNRTLOGFLUSHGC pfnFlush; -
trunk/include/iprt/spinlock.h
r8245 r9212 56 56 # elif defined(RT_OS_WINDOWS) 57 57 /** The saved [R|E]FLAGS. */ 58 RT UINTREG uFlags;58 RTCCUINTREG uFlags; 59 59 /** The KIRQL. */ 60 60 unsigned char uchIrqL; … … 68 68 # elif defined(RT_OS_DARWIN) 69 69 /** The saved [R|E]FLAGS. */ 70 RT UINTREG uFlags;70 RTCCUINTREG uFlags; 71 71 # define RTSPINLOCKTMP_INITIALIZER { 0 } 72 72 73 73 # elif defined(RT_OS_OS2) || defined(RT_OS_FREEBSD) || defined(RT_OS_SOLARIS) 74 74 /** The saved [R|E]FLAGS. (dummy) */ 75 RT UINTREG uFlags;75 RTCCUINTREG uFlags; 76 76 # define RTSPINLOCKTMP_INITIALIZER { 0 } 77 77 … … 79 79 # error "Your OS is not supported.\n" 80 80 /** The saved [R|E]FLAGS. */ 81 RT UINTREG uFlags;81 RTCCUINTREG uFlags; 82 82 # endif 83 83 … … 85 85 /** The saved [R|E]FLAGS. 86 86 * (RT spinlocks will by definition disable interrupts.) */ 87 RT UINTREG uFlags;87 RTCCUINTREG uFlags; 88 88 # define RTSPINLOCKTMP_INITIALIZER { 0 } 89 89 #endif /* !IN_RING0 */ -
trunk/include/iprt/time.h
r8245 r9212 842 842 typedef struct RTTIMENANOTSDATAGC 843 843 { 844 GCPTRTYPE(uint64_t volatile *) pu64Prev;844 RCPTRTYPE(uint64_t volatile *) pu64Prev; 845 845 DECLGCCALLBACKMEMBER(void, pfnBad,(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS)); 846 846 DECLGCCALLBACKMEMBER(uint64_t, pfnRediscover,(PRTTIMENANOTSDATA pData)); 847 R TGCPTRpvDummy;847 RCPTRTYPE(void *) pvDummy; 848 848 uint32_t c1nsSteps; 849 849 uint32_t cExpired; -
trunk/include/iprt/types.h
r9145 r9212 707 707 708 708 /** Natural signed integer in the GC. */ 709 #if GC_ARCH_BITS == 32 709 710 typedef int32_t RTGCINT; 711 #elif GC_ARCH_BITS == 64 712 typedef int64_t RTGCINT; 713 #endif 710 714 /** Pointer to natural signed interger in GC. */ 711 715 typedef RTGCINT *PRTGCINT; … … 713 717 typedef const RTGCINT *PCRTGCINT; 714 718 715 /** Natural signed uninteger in the GC. */ 719 /** Natural unsigned integer in the GC. */ 720 #if GC_ARCH_BITS == 32 716 721 typedef uint32_t RTGCUINT; 717 /** Pointer to natural unsigned interger in GC. */ 722 #elif GC_ARCH_BITS == 64 723 typedef uint64_t RTGCUINT; 724 #endif 725 /** Pointer to natural unsigned integer in GC. */ 718 726 typedef RTGCUINT *PRTGCUINT; 719 /** Pointer to const natural unsigned inte rger in GC. */727 /** Pointer to const natural unsigned integer in GC. */ 720 728 typedef const RTGCUINT *PCRTGCUINT; 721 729 … … 725 733 #elif GC_ARCH_BITS == 64 726 734 typedef int64_t RTGCINTPTR; 727 #else728 # error Unsupported GC_ARCH_BITS value.729 735 #endif 730 736 /** Pointer to signed interger which can contain a GC pointer. */ … … 808 814 * HC and void pointer in GC. 809 815 */ 810 #ifdef IN_GC811 typedef void *RTGCPTR32;812 #else813 816 typedef RTGCUINTPTR32 RTGCPTR32; 814 #endif815 817 /** Pointer to a guest context pointer. */ 816 818 typedef RTGCPTR32 *PRTGCPTR32; … … 863 865 864 866 /** Unsigned integer register in the guest context. */ 867 typedef uint32_t RTGCUINTREG32; 868 /** Pointer to an unsigned integer register in the guest context. */ 869 typedef RTGCUINTREG32 *PRTGCUINTREG32; 870 /** Pointer to a const unsigned integer register in the guest context. */ 871 typedef const RTGCUINTREG32 *PCRTGCUINTREG32; 872 873 typedef uint64_t RTGCUINTREG64; 874 /** Pointer to an unsigned integer register in the guest context. */ 875 typedef RTGCUINTREG64 *PRTGCUINTREG64; 876 /** Pointer to a const unsigned integer register in the guest context. */ 877 typedef const RTGCUINTREG64 *PCRTGCUINTREG64; 878 865 879 #if GC_ARCH_BITS == 64 866 typedef uint64_tRTGCUINTREG;880 typedef RTGCUINTREG64 RTGCUINTREG; 867 881 #elif GC_ARCH_BITS == 32 868 typedef uint32_tRTGCUINTREG;882 typedef RTGCUINTREG32 RTGCUINTREG; 869 883 #else 870 884 # error "Unsupported GC_ARCH_BITS!" … … 904 918 #endif 905 919 920 /** Unsigned integer register in the current 32 bits context. */ 921 typedef uint32_t RTCCUINTREG32; 922 /** Pointer to an unsigned integer register in the current context. */ 923 typedef RTCCUINTREG32 *PRTCCUINTREG32; 924 /** Pointer to a const unsigned integer register in the current context. */ 925 typedef const RTCCUINTREG32 *PCRTCCUINTREG32; 926 927 /** Unsigned integer register in the current 64 bits context. */ 928 typedef uint64_t RTCCUINTREG64; 929 /** Pointer to an unsigned integer register in the current context. */ 930 typedef RTCCUINTREG64 *PRTCCUINTREG64; 931 /** Pointer to a const unsigned integer register in the current context. */ 932 typedef const RTCCUINTREG64 *PCRTCCUINTREG64; 933 906 934 /** Unsigned integer register in the current context. */ 907 935 #if ARCH_BITS == 32 908 typedef uint32_t RTCCUINTREG; 936 typedef RTCCUINTREG32 RTCCUINTREG; 937 /** Pointer to an unsigned integer register in the current context. */ 938 typedef PRTCCUINTREG32 PRTCCUINTREG; 939 /** Pointer to a const unsigned integer register in the current context. */ 940 typedef PCRTCCUINTREG32 PCRTCCUINTREG; 909 941 #elif ARCH_BITS == 64 910 typedef uint64_t RTCCUINTREG; 942 typedef RTCCUINTREG64 RTCCUINTREG; 943 /** Pointer to an unsigned integer register in the current context. */ 944 typedef PRTCCUINTREG64 PRTCCUINTREG; 945 /** Pointer to a const unsigned integer register in the current context. */ 946 typedef PCRTCCUINTREG64 PCRTCCUINTREG; 911 947 #else 912 948 # error "Unsupported ARCH_BITS!" 913 949 #endif 914 /** Pointer to an unsigned integer register in the current context. */915 typedef RTCCUINTREG *PRTCCUINTREG;916 /** Pointer to a const unsigned integer register in the current context. */917 typedef const RTCCUINTREG *PCRTCCUINTREG;918 919 /** @deprecated */920 typedef RTCCUINTREG RTUINTREG;921 /** @deprecated */922 typedef RTCCUINTREG *PRTUINTREG;923 /** @deprecated */924 typedef const RTCCUINTREG *PCRTUINTREG;925 950 926 951 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.