VirtualBox

Changeset 22925 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Sep 10, 2009 10:24:58 PM (15 years ago)
Author:
vboxsync
Message:

Devices: Alignment fun. (32-bit darwin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r22793 r22925  
    241241    R3PTRTYPE(char *)       pszDesc;
    242242# ifdef VBOX_WITH_STATISTICS
     243#  if HC_ARCH_BITS == 32
     244    uint32_t                u32Alignment0;
     245#  endif
    243246    STAMCOUNTER             StatTimerSetInitialCount;
    244247    STAMCOUNTER             StatTimerSetInitialCountArm;
     
    254257#endif /* VBOX */
    255258} APICState;
     259#ifdef VBOX
     260AssertCompileMemberAlignment(APICState, initial_count_load_time, 8);
     261# ifdef VBOX_WITH_STATISTICS
     262AssertCompileMemberAlignment(APICState, StatTimerSetInitialCount, 8);
     263# endif
     264#endif
    256265
    257266struct IOAPICState {
     
    320329    /** The critical section - R3 Ptr. */
    321330    RCPTRTYPE(PPDMCRITSECT) pCritSectRC;
    322     RTRCPTR                 Padding0;
    323331
    324332    /** APIC specification version in this virtual hardware configuration. */
     
    332340
    333341# ifdef VBOX_WITH_STATISTICS
     342    uint32_t                u32Alignment0;
    334343    STAMCOUNTER             StatMMIOReadGC;
    335344    STAMCOUNTER             StatMMIOReadHC;
     
    339348# endif
    340349} APICDeviceInfo;
     350# ifdef VBOX_WITH_STATISTICS
     351AssertCompileMemberAlignment(APICDeviceInfo, StatMMIOReadGC, 8);
     352# endif
    341353#endif /* VBOX */
    342354
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette