Changeset 90639 in vbox
- Timestamp:
- Aug 11, 2021 9:41:42 PM (3 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r90638 r90639 127 127 * PDMDEVINS structure. */ 128 128 PDMCRITSECT CritSect; 129 #if !defined(VBOX_WITHOUT_TESTING_FEATURES) || defined(DOXYGEN_RUNNING) 130 /** Read write critical section of lock testing. 131 * @remarks At the beginning to satisfy 64 byte alignment requirement. */ 132 PDMCRITSECTRW CritSectRw; 133 #endif 129 134 130 135 /** mouse capabilities of host and guest */ … … 366 371 /** Handle for the MMIO region used by the testing component. */ 367 372 IOMMMIOHANDLE hMmioTesting; 368 /** Read write critical section of lock testing. */369 PDMCRITSECTRW CritSectRw;370 373 #endif /* !VBOX_WITHOUT_TESTING_FEATURES || DOXYGEN_RUNNING */ 371 374 /** @} */ … … 393 396 #ifndef VBOX_WITHOUT_TESTING_FEATURES 394 397 AssertCompileMemberAlignment(VMMDEV, TestingData.Value.u64Value, 8); 395 AssertCompileMemberAlignment(VMMDEV, CritSectRw, 32);398 AssertCompileMemberAlignment(VMMDEV, CritSectRw, 64); 396 399 #endif 397 400 -
trunk/src/VBox/VMM/VMMR3/PDMCritSect.cpp
r90638 r90639 251 251 VM_ASSERT_EMT(pVM); 252 252 Assert(pCritSect->Core.u32Magic != RTCRITSECTRW_MAGIC); 253 AssertMsgReturn(((uintptr_t)&pCritSect->Core & 31) == 0, ("&Core=%p, must be 32-byte aligned!\n", &pCritSect->Core),253 AssertMsgReturn(((uintptr_t)&pCritSect->Core & 63) == 0, ("&Core=%p, must be 64-byte aligned!\n", &pCritSect->Core), 254 254 VERR_PDM_CRITSECTRW_MISALIGNED); 255 255 AssertMsgReturn(((uintptr_t)&pCritSect->Core.u & (sizeof(pCritSect->Core.u.u128) - 1)) == 0 /* paranoia */, -
trunk/src/VBox/VMM/include/IOMInternal.h
r90638 r90639 470 470 } IOM; 471 471 #ifdef IOM_WITH_CRIT_SECT_RW 472 AssertCompileMemberAlignment(IOM, CritSect, 32);472 AssertCompileMemberAlignment(IOM, CritSect, 64); 473 473 #endif 474 474 /** Pointer to IOM instance data. */ -
trunk/src/VBox/VMM/include/TMInternal.h
r90638 r90639 320 320 PDMCRITSECTRW AllocLock; 321 321 } TMTIMERQUEUE; 322 AssertCompileMemberAlignment(TMTIMERQUEUE, AllocLock, 32);322 AssertCompileMemberAlignment(TMTIMERQUEUE, AllocLock, 64); 323 323 AssertCompileSizeAlignment(TMTIMERQUEUE, 64); 324 324 /** Pointer to a timer queue. */
Note:
See TracChangeset
for help on using the changeset viewer.