VirtualBox

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


Ignore:
Timestamp:
Apr 28, 2013 10:16:52 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85363
Message:

32-bit burn fixes.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r45790 r45795  
    162162    RCPTRTYPE(PPDMQUEUE) pNotificationQueueRC;
    163163
    164 #if HC_ARCH_BITS == 64
    165     uint32_t             Alignment1;
    166 #endif
    167 
    168164    /** Number of device states allocated. */
    169165    uint32_t             cDeviceStates;
    170166
    171 #if HC_ARCH_BITS == 64
    172     uint32_t             Alignment2;
    173 #endif
    174 
    175167    /** States for attached devices. */
    176168    R3PTRTYPE(PLSILOGICDEVICE) paDeviceStates;
    177 
    178     /** MMIO address the device is mapped to. */
    179     RTGCPHYS              GCPhysMMIOBase;
    180     /** I/O port address the device is mapped to. */
    181     RTIOPORT              IOPortBase;
     169#if HC_ARCH_BITS == 32
     170    RTR3PTR                 R3PtrPadding0;
     171#endif
    182172
    183173    /** Interrupt mask. */
     
    186176    volatile uint32_t     uInterruptStatus;
    187177
    188     /** Buffer for messages which are passed
    189      * through the doorbell using the
     178    /** Buffer for messages which are passed through the doorbell using the
    190179     * handshake method. */
    191     uint32_t              aMessage[sizeof(MptConfigurationRequest)];
     180    uint32_t              aMessage[sizeof(MptConfigurationRequest)]; /** @todo r=bird: Looks like 4 tims the required size? Please explain in comment if this correct... */
    192181    /** Actual position in the buffer. */
    193182    uint32_t              iMessage;
     
    195184    uint32_t              cMessage;
    196185
    197     /** Reply buffer. */
     186    /** Reply buffer.
     187     * @note 60 bytes  */
    198188    MptReplyUnion         ReplyBuffer;
    199189    /** Next entry to read. */
     
    204194    /** The fault code of the I/O controller if we are in the fault state. */
    205195    uint16_t              u16IOCFaultCode;
     196
     197    /** I/O port address the device is mapped to. */
     198    RTIOPORT              IOPortBase;
     199    /** MMIO address the device is mapped to. */
     200    RTGCPHYS              GCPhysMMIOBase;
    206201
    207202    /** Upper 32 bits of the message frame address to locate requests in guest memory. */
     
    225220    uint32_t              cRequestQueueEntries;
    226221
    227 #if HC_ARCH_BITS == 64
    228     uint32_t              Alignment3;
    229 #endif
    230222
    231223    /** Critical section protecting the reply post queue. */
     
    254246    /** Pointer to the start of the request queue - RC. */
    255247    RCPTRTYPE(volatile uint32_t *) pRequestQueueBaseRC;
     248    /** End these RC pointers on a 64-bit boundrary. */
     249    RTRCPTR                        RCPtrPadding1;
    256250
    257251    /** Next free entry in the reply queue the guest can write a address to. */
     
    275269    uint16_t                       u16NextHandle;
    276270
    277     uint16_t                       u16Alignment4;
    278     uint32_t                       u32Alignment5;
    279 
    280271    /** Number of ports this controller has. */
    281272    uint8_t                        cPorts;
    282273
    283 #if HC_ARCH_BITS == 64
    284     uint32_t                       Alignment6;
    285 #endif
    286 
    287274    /** BIOS emulation. */
    288275    VBOXSCSI                       VBoxSCSI;
     276
    289277    /** Cache for allocated tasks. */
    290278    R3PTRTYPE(RTMEMCACHE)          hTaskCache;
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.h

    r45789 r45795  
    11511151    MptFWUploadReply           FWUpload;
    11521152} MptReplyUnion, *PMptReplyUnion;
     1153AssertCompileSize(MptReplyUnion, 60);
    11531154
    11541155
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