VirtualBox

Changeset 31058 in vbox


Ignore:
Timestamp:
Jul 23, 2010 1:06:52 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63988
Message:

VUSBInternal.h: Attempt to fix the alignment issues on 32-bit hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/VUSBInternal.h

    r30968 r31058  
    2828#include <VBox/vusb.h>
    2929#include <VBox/stam.h>
     30#include <iprt/assert.h>
    3031
    3132RT_C_DECLS_BEGIN
     
    353354    /** Chain of devices attached to this hub. */
    354355    PVUSBDEV                pDevices;
     356#if HC_ARCH_BITS == 32
     357    uint32_t                Alignment0;
     358#endif
    355359    /** Availability Bitmap. */
    356360    VUSBPORTBITMAP          Bitmap;
     
    366370#ifdef VBOX_WITH_STATISTICS
    367371#if HC_ARCH_BITS == 32
    368     uint32_t                Alignment0; /**< Counters must be 64-bit aligned. */
     372    uint32_t                Alignment1; /**< Counters must be 64-bit aligned. */
    369373#endif
    370374    VUSBROOTHUBTYPESTATS    Total;
     
    393397#endif
    394398} VUSBROOTHUB;
     399AssertCompileMemberAlignment(VUSBROOTHUB, IRhConnector, 8);
     400AssertCompileMemberAlignment(VUSBROOTHUB, Bitmap, 8);
     401AssertCompileMemberAlignment(VUSBROOTHUB, CritSect, 8);
     402#ifdef VBOX_WITH_STATISTICS
     403AssertCompileMemberAlignment(VUSBROOTHUB, Total, 8);
     404#endif
    395405
    396406/** Converts a pointer to VUSBROOTHUB::IRhConnector to a PVUSBROOTHUB. */
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