Changeset 9212 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- May 29, 2008 9:38:38 AM (17 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/sanity.h
r8245 r9212 46 46 # error "defined(IN_RING0) && ARCH_BITS != R0_ARCH_BITS" 47 47 #endif 48 #if defined(IN_GC) && ARCH_BITS != GC_ARCH_BITS49 # error "defined(IN_GC) && ARCH_BITS != GC_ARCH_BITS"48 #if defined(IN_GC) && ARCH_BITS != 32 49 # error "defined(IN_GC) && ARCH_BITS != 32" 50 50 #endif 51 51 #if (defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS 52 52 # error "(defined(IN_RING0) || defined(IN_RING3)) && HC_ARCH_BITS != ARCH_BITS" 53 53 #endif 54 #if defined(IN_GC) && GC_ARCH_BITS != ARCH_BITS54 #if defined(IN_GC) && GC_ARCH_BITS != 64 && GC_ARCH_BITS != ARCH_BITS 55 55 # error "defined(IN_GC) && GC_ARCH_BITS != ARCH_BITS" 56 56 #endif … … 124 124 #if GC_ARCH_BITS == 64 125 125 126 AssertCompileSize(RTGCINT, 4);127 AssertCompileSize(RTGCUINT, 4);126 AssertCompileSize(RTGCINT, 8); 127 AssertCompileSize(RTGCUINT, 8); 128 128 AssertCompileSize(RTGCINTPTR, 8); 129 129 AssertCompileSize(RTGCUINTPTR, 8); … … 133 133 # ifdef IN_GC 134 134 /*AssertCompileSize(RTCCINTREG, 8);*/ 135 AssertCompileSize(RTCCUINTREG, 8); 135 /* Hack alert: there is no such thing as a GC context when GC_ARCH_BITS == 64; it's still 32 bits */ 136 AssertCompileSize(RTCCUINTREG, 4); 136 137 # endif 137 138 -
trunk/src/VBox/Runtime/common/string/strformatrt.cpp
r8479 r9212 54 54 * - \%RTproc - Takes a #RTPROCESS value. 55 55 * - \%RTptr - Takes a #RTINTPTR or #RTUINTPTR value (but not void *). 56 * - \%RTreg - Takes a #RT UINTREG value.56 * - \%RTreg - Takes a #RTCCUINTREG value. 57 57 * - \%RTsel - Takes a #RTSEL value. 58 58 * - \%RTsem - Takes a #RTSEMEVENT, #RTSEMEVENTMULTI, #RTSEMMUTEX, #RTSEMFASTMUTEX, or #RTSEMRW value. … … 245 245 { STRMEM("Tproc"), sizeof(RTPROCESS), 16, RTSF_INTW, 0 }, 246 246 { STRMEM("Tptr"), sizeof(RTUINTPTR), 16, RTSF_INTW, 0 }, 247 { STRMEM("Treg"), sizeof(RT UINTREG),16, RTSF_INTW, 0 },247 { STRMEM("Treg"), sizeof(RTCCUINTREG), 16, RTSF_INTW, 0 }, 248 248 { STRMEM("Tsel"), sizeof(RTSEL), 16, RTSF_INTW, 0 }, 249 249 { STRMEM("Tsem"), sizeof(RTSEMEVENT), 16, RTSF_INTW, 0 }, -
trunk/src/VBox/Runtime/testcase/tstStrFormat.cpp
r8245 r9212 294 294 } 295 295 296 if (sizeof(RT UINTREG) == 8)297 { 298 CHECK42("%RTreg", (RT UINTREG)0, "0000000000000000");299 CHECK42("%RTreg", ~(RT UINTREG)0, "ffffffffffffffff");300 CHECK42("%RTreg", (RT UINTREG)0x84342134, "0000000084342134");301 CHECK42("%RTreg", (RT UINTREG)0x23484342134ULL, "0000023484342134");296 if (sizeof(RTCCUINTREG) == 8) 297 { 298 CHECK42("%RTreg", (RTCCUINTREG)0, "0000000000000000"); 299 CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffffffffffff"); 300 CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "0000000084342134"); 301 CHECK42("%RTreg", (RTCCUINTREG)0x23484342134ULL, "0000023484342134"); 302 302 } 303 303 else 304 304 { 305 CHECK42("%RTreg", (RT UINTREG)0, "00000000");306 CHECK42("%RTreg", ~(RT UINTREG)0, "ffffffff");307 CHECK42("%RTreg", (RT UINTREG)0x84342134, "84342134");305 CHECK42("%RTreg", (RTCCUINTREG)0, "00000000"); 306 CHECK42("%RTreg", ~(RTCCUINTREG)0, "ffffffff"); 307 CHECK42("%RTreg", (RTCCUINTREG)0x84342134, "84342134"); 308 308 } 309 309
Note:
See TracChangeset
for help on using the changeset viewer.