VirtualBox

Changeset 56715 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 30, 2015 11:48:17 PM (10 years ago)
Author:
vboxsync
Message:

Fix various alignments of STAM members in devices and VMM for 32bit, producing assertions in stamR3RegisterU() previously. (Hoping the 64bit builds are not starting to burn now)

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r56648 r56715  
    269269    uint64_t                uTicks;
    270270#ifdef VBOX_WITH_STATISTICS
     271# if HC_ARCH_BITS == 32
     272    uint32_t                u32Alignment0;
     273# endif
    271274    STAMPROFILE             StatTimer;
    272275    STAMCOUNTER             StatBytesRead;
     
    300303/** Pointer to the AC97 device state. */
    301304typedef AC97STATE *PAC97STATE;
     305
     306AssertCompileMemberAlignment(AC97STATE, StatTimer, 8);
    302307
    303308#ifndef VBOX_DEVICE_STRUCT_TESTCASE
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r56676 r56715  
    575575    R3PTRTYPE(PRTLISTANCHOR)        pListReqsFree;
    576576
     577    /** Align to a multiple of 8. */
     578#if HC_ARCH_BITS == 32
     579    uint32_t                        u32Alignment6;
     580#endif
     581
    577582} AHCIPort;
    578583/** Pointer to the state of an AHCI port. */
    579584typedef AHCIPort *PAHCIPort;
     585
     586AssertCompileMemberAlignment(AHCIPort, StatDMA, 8);
     587AssertCompileSizeAlignment(AHCIPort, 8);
    580588
    581589/**
     
    723731/** Pointer to the state of an AHCI device. */
    724732typedef AHCI *PAHCI;
     733
     734AssertCompileMemberAlignment(AHCI, ahciPort[0], 8);
    725735
    726736/**
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r56579 r56715  
    441441    /** Magic delay before triggering interrupts in DMA mode. */
    442442    uint32_t            DelayIRQMillies;
     443    /** The event semaphore the thread is waiting on during suspended I/O. */
     444    RTSEMEVENT          SuspendIOSem;
    443445    /** The lock protecting the request queue. */
    444446    PDMCRITSECT         AsyncIORequestLock;
    445     /** The event semaphore the thread is waiting on during suspended I/O. */
    446     RTSEMEVENT          SuspendIOSem;
    447447#if 0 /*HC_ARCH_BITS == 32*/
    448448    uint32_t            Alignment0;
     
    464464AssertCompileMemberAlignment(ATACONTROLLER, u64ResetTime, 8);
    465465AssertCompileMemberAlignment(ATACONTROLLER, StatAsyncOps, 8);
     466AssertCompileMemberAlignment(ATACONTROLLER, AsyncIORequestLock, 8);
     467AssertCompileSizeAlignment(ATACONTROLLER, 8);
    466468
    467469typedef enum CHIPSET
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