VirtualBox

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


Ignore:
Timestamp:
Jan 31, 2007 11:14:41 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18089
Message:

64-bit alignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r360 r484  
    141141    uint16_t                            aMII[MII_MAX_REG];
    142142    uint16_t                            u16CSR0LastSeenByGuest; /** @todo SSM!! */
     143    uint16_t                            Alignment0[HC_ARCH_BITS == 32 ? 2 : 4];
    143144    /** Last time we polled the queues */
    144145    uint64_t                            u64LastPoll;
     
    168169
    169170    /** Transmit signaller */
     171    GCPTRTYPE(PPDMQUEUE)                pXmitQueueGC;
    170172    HCPTRTYPE(PPDMQUEUE)                pXmitQueueHC;
    171     GCPTRTYPE(PPDMQUEUE)                pXmitQueueGC;
    172173
    173174    /** Receive signaller */
    174175    HCPTRTYPE(PPDMQUEUE)                pCanRxQueueHC;
    175176    GCPTRTYPE(PPDMQUEUE)                pCanRxQueueGC;
     177    /** Pointer to the device instance. */
     178    GCPTRTYPE(PPDMDEVINS)               pDevInsGC;
     179    /** Pointer to the device instance. */
     180    HCPTRTYPE(PPDMDEVINS)               pDevInsHC;
    176181    /** Restore timer.
    177182     *  This is used to disconnect and reconnect the link after a restore. */
    178183    PTMTIMERHC                          pTimerRestore;
    179     /** Pointer to the device instance. */
    180     HCPTRTYPE(PPDMDEVINS)               pDevInsHC;
    181     /** Pointer to the device instance. */
    182     GCPTRTYPE(PPDMDEVINS)               pDevInsGC;
    183184    /** Pointer to the connector of the attached network driver. */
    184185    HCPTRTYPE(PPDMINETWORKCONNECTOR)    pDrv;
     
    232233    bool                                fR0Enabled;
    233234    bool                                fAm79C973;
     235    bool                                afAlignment[5];
    234236
    235237#ifdef VBOX_WITH_STATISTICS
     
    525527#pragma pack()
    526528
     529
     530#ifndef VBOX_DEVICE_STRUCT_TESTCASE
     531/*******************************************************************************
     532*   Internal Functions                                                         *
     533*******************************************************************************/
    527534#define PRINT_TMD(T) Log((    \
    528535        "TMD0 : TBADR=0x%08x\n" \
     
    925932}
    926933
    927 /*******************************************************************************
    928 *   Internal Functions                                                         *
    929 *******************************************************************************/
    930934__BEGIN_DECLS
    931935PDMBOTHCBDECL(int) pcnetIOPortRead(PPDMDEVINS pDevIns, void *pvUser,
     
    12311235    RTGCPHYS TDRAPageStart = pData->GCTDRA & ~PAGE_OFFSET_MASK;
    12321236    RTGCPHYS TDRAPageEnd   = (pcnetTdraAddr(pData, 0) - 1) & ~PAGE_OFFSET_MASK;
    1233    
     1237
    12341238    if (    RDRAPageStart > TDRAPageEnd
    12351239        ||  TDRAPageStart > RDRAPageEnd)
     
    41784182
    41794183#endif /* IN_RING3 */
     4184#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
     4185
Note: See TracChangeset for help on using the changeset viewer.

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