VirtualBox

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


Ignore:
Timestamp:
Apr 9, 2018 1:15:57 AM (7 years ago)
Author:
vboxsync
Message:

DevIchAc97: Alignment fixing.

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

Legend:

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

    r71752 r71753  
    434434    uint8_t                 cStreamsActive;
    435435#ifndef VBOX_WITH_AUDIO_AC97_CALLBACKS
     436    /** Flag indicating whether the timer is active or not. */
     437    bool                    fTimerActive;
     438    uint8_t                 u8Padding1[2];
     439    /** The timer for pumping data thru the attached LUN drivers - RCPtr. */
     440    PTMTIMERRC              pTimerRC;
    436441    /** The timer for pumping data thru the attached LUN drivers - R3Ptr. */
    437442    PTMTIMERR3              pTimerR3;
    438443    /** The timer for pumping data thru the attached LUN drivers - R0Ptr. */
    439444    PTMTIMERR0              pTimerR0;
    440     /** The timer for pumping data thru the attached LUN drivers - RCPtr. */
    441     PTMTIMERRC              pTimerRC;
    442     uint32_t                Padding0;
    443     /** Flag indicating whether the timer is active or not. */
    444     bool                    fTimerActive;
    445     uint8_t                 u8Padding1[7];
    446445    /** The timer interval for pumping data thru the LUN drivers in timer ticks. */
    447446    uint64_t                cTimerTicks;
     
    468467    R3PTRTYPE(PAUDMIXSINK)  pSinkMicIn;
    469468    uint8_t                 silence[128];
    470     int                     bup_flag;
    471     /** The base interface for LUN\#0. */
    472     PDMIBASE                IBase;
     469    int32_t                 bup_flag;
    473470    /** Base port of the I/O space region. */
    474471    RTIOPORT                IOPortBase[2];
    475472    /** Codec model. */
    476473    uint32_t                uCodecModel;
     474#if HC_ARCH_BITS == 64
     475    uint32_t                uPadding2;
     476#endif
     477    /** The base interface for LUN\#0. */
     478    PDMIBASE                IBase;
    477479} AC97STATE;
    478480AssertCompileMemberAlignment(AC97STATE, StreamLineIn, 8);
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp

    r71751 r71753  
    18801880    GEN_CHECK_OFF(AC97STATE, pTimerR0);
    18811881    GEN_CHECK_OFF(AC97STATE, pTimerRC);
    1882     GEN_CHECK_OFF(AC97STATE, Padding0);
    18831882    GEN_CHECK_OFF(AC97STATE, fTimerActive);
    18841883    GEN_CHECK_OFF(AC97STATE, u8Padding1);
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