Changeset 90638 in vbox
- Timestamp:
- Aug 11, 2021 9:35:56 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146250
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r90486 r90638 1613 1613 /** Internal error in read-write critical section. */ 1614 1614 #define VERR_PDM_CRITSECTRW_IPE (-7205) 1615 /** Misaligned read/write critical section. */ 1616 #define VERR_PDM_CRITSECTRW_MISALIGNED (-7206) 1615 1617 /** @} */ 1616 1618 -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r90503 r90638 393 393 #ifndef VBOX_WITHOUT_TESTING_FEATURES 394 394 AssertCompileMemberAlignment(VMMDEV, TestingData.Value.u64Value, 8); 395 AssertCompileMemberAlignment(VMMDEV, CritSectRw, 32); 395 396 #endif 396 397 -
trunk/src/VBox/VMM/VMMR3/PDMCritSect.cpp
r90637 r90638 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), 254 VERR_PDM_CRITSECTRW_MISALIGNED); 255 AssertMsgReturn(((uintptr_t)&pCritSect->Core.u & (sizeof(pCritSect->Core.u.u128) - 1)) == 0 /* paranoia */, 256 ("&Core.u=%p, must be 16-byte aligned!\n", &pCritSect->Core.u), 257 VERR_PDM_CRITSECTRW_MISALIGNED); 253 258 254 259 /* -
trunk/src/VBox/VMM/include/IOMInternal.h
r90347 r90638 384 384 typedef struct IOM 385 385 { 386 /** Lock serializing EMT access to IOM. */ 387 #ifdef IOM_WITH_CRIT_SECT_RW 388 PDMCRITSECTRW CritSect; 389 #else 390 PDMCRITSECT CritSect; 391 #endif 392 386 393 /** @name I/O ports 387 394 * @note The updating of these variables is done exclusively from EMT(0). … … 438 445 /** @} */ 439 446 440 441 /** Lock serializing EMT access to IOM. */442 #ifdef IOM_WITH_CRIT_SECT_RW443 PDMCRITSECTRW CritSect;444 #else445 PDMCRITSECT CritSect;446 #endif447 448 447 /** @name I/O Port statistics. 449 448 * @{ */ … … 470 469 /** @} */ 471 470 } IOM; 471 #ifdef IOM_WITH_CRIT_SECT_RW 472 AssertCompileMemberAlignment(IOM, CritSect, 32); 473 #endif 472 474 /** Pointer to IOM instance data. */ 473 475 typedef IOM *PIOM; -
trunk/src/VBox/VMM/include/TMInternal.h
r87816 r90638 320 320 PDMCRITSECTRW AllocLock; 321 321 } TMTIMERQUEUE; 322 AssertCompileMemberAlignment(TMTIMERQUEUE, AllocLock, 32); 322 323 AssertCompileSizeAlignment(TMTIMERQUEUE, 64); 323 324 /** Pointer to a timer queue. */
Note:
See TracChangeset
for help on using the changeset viewer.