Changeset 22925 in vbox
- Timestamp:
- Sep 10, 2009 10:24:58 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 52190
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r22793 r22925 329 329 #endif /* VBOX_WITH_STATISTICS */ 330 330 }; 331 AssertCompileMemberAlignment(PCNetState, StatReceiveBytes, 8); 331 332 332 333 #define PCNETSTATE_2_DEVINS(pPCNet) ((pPCNet)->CTX_SUFF(pDevIns)) -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r22827 r22925 167 167 /** The read end of the control pipe. */ 168 168 RTFILE PipeRead; 169 # if HC_ARCH_BITS == 32 170 /** Alignment padding. */ 171 uint32_t u32Alignment; 172 # endif 169 173 #else 170 174 /** for external notification */ … … 184 188 #endif 185 189 } DRVNAT; 190 AssertCompileMemberAlignment(DRVNAT, StatNATRecvWakeups, 8); 186 191 /** Pointer the NAT driver instance data. */ 187 192 typedef DRVNAT *PDRVNAT; -
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r22793 r22925 241 241 R3PTRTYPE(char *) pszDesc; 242 242 # ifdef VBOX_WITH_STATISTICS 243 # if HC_ARCH_BITS == 32 244 uint32_t u32Alignment0; 245 # endif 243 246 STAMCOUNTER StatTimerSetInitialCount; 244 247 STAMCOUNTER StatTimerSetInitialCountArm; … … 254 257 #endif /* VBOX */ 255 258 } APICState; 259 #ifdef VBOX 260 AssertCompileMemberAlignment(APICState, initial_count_load_time, 8); 261 # ifdef VBOX_WITH_STATISTICS 262 AssertCompileMemberAlignment(APICState, StatTimerSetInitialCount, 8); 263 # endif 264 #endif 256 265 257 266 struct IOAPICState { … … 320 329 /** The critical section - R3 Ptr. */ 321 330 RCPTRTYPE(PPDMCRITSECT) pCritSectRC; 322 RTRCPTR Padding0;323 331 324 332 /** APIC specification version in this virtual hardware configuration. */ … … 332 340 333 341 # ifdef VBOX_WITH_STATISTICS 342 uint32_t u32Alignment0; 334 343 STAMCOUNTER StatMMIOReadGC; 335 344 STAMCOUNTER StatMMIOReadHC; … … 339 348 # endif 340 349 } APICDeviceInfo; 350 # ifdef VBOX_WITH_STATISTICS 351 AssertCompileMemberAlignment(APICDeviceInfo, StatMMIOReadGC, 8); 352 # endif 341 353 #endif /* VBOX */ 342 354 -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r22793 r22925 266 266 /** The LUN #. */ 267 267 RTUINT iLUN; 268 #if HC_ARCH_BITS == 64269 268 RTUINT Alignment2; /**< Align pDevInsR3 correctly. */ 270 #endif271 269 /** Pointer to device instance. */ 272 270 PPDMDEVINSR3 pDevInsR3; … … 289 287 char szModelNumber[ATA_MODEL_NUMBER_LENGTH+1]; 290 288 291 #if HC_ARCH_BITS == 64 292 uint32_t Alignment3[2]; 293 #endif 289 uint8_t abAlignment3[HC_ARCH_BITS == 32 ? 7 : 7]; 294 290 } ATADevState; 291 AssertCompileMemberAlignment(ATADevState, cTotalSectors, 8); 292 AssertCompileMemberAlignment(ATADevState, StatATADMA, 8); 293 AssertCompileMemberAlignment(ATADevState, u64CmdTS, 8); 294 AssertCompileMemberAlignment(ATADevState, pDevInsR3, 8); 295 AssertCompileMemberAlignment(ATADevState, szSerialNumber, 8); 296 AssertCompileSizeAlignment(ATADevState, 8); 295 297 296 298 … … 422 424 STAMPROFILE StatLockWait; 423 425 } ATACONTROLLER, *PATACONTROLLER; 426 AssertCompileMemberAlignment(ATACONTROLLER, lock, 8); 427 AssertCompileMemberAlignment(ATACONTROLLER, aIfs, 8); 428 AssertCompileMemberAlignment(ATACONTROLLER, aIfs[1], 8); 429 AssertCompileMemberAlignment(ATACONTROLLER, u64ResetTime, 8); 430 AssertCompileMemberAlignment(ATACONTROLLER, StatAsyncOps, 8); 424 431 425 432 typedef enum CHIPSET
Note:
See TracChangeset
for help on using the changeset viewer.