VirtualBox

Changeset 526 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 2, 2007 12:43:41 AM (18 years ago)
Author:
vboxsync
Message:

Alignment fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMInternal.h

    r161 r526  
    7979    /** Pointer to the VM this instance was created for - HC Ptr. */
    8080    HCPTRTYPE(PVM)                  pVMHC;
     81    /** Pointer to the list of logical units associated with the device. (FIFO) */
     82    HCPTRTYPE(PPDMLUN)              pLunsHC;
     83    /** Configuration handle to the instance node. */
     84    HCPTRTYPE(PCFGMNODE)            pCfgHandle;
     85    /** HC pointer to associated PCI device structure. */
     86    HCPTRTYPE(struct PCIDevice *)   pPciDeviceHC;
     87    /** HC pointer to associated PCI bus structure. */
     88    HCPTRTYPE(PPDMPCIBUS)           pPciBusHC;
     89
     90    /** GC pointer to associated PCI device structure. */
     91    GCPTRTYPE(struct PCIDevice *)   pPciDeviceGC;
    8192    /** Pointer to the VM this instance was created for - GC Ptr. */
    8293    GCPTRTYPE(PVM)                  pVMGC;
    83 
    84     /** Pointer to the list of logical units associated with the device. (FIFO) */
    85     HCPTRTYPE(PPDMLUN)              pLunsHC;
    86 
    87     /** Configuration handle to the instance node. */
    88     HCPTRTYPE(PCFGMNODE)            pCfgHandle;
    89 
    90     /** HC pointer to associated PCI device structure. */
    91     HCPTRTYPE(struct PCIDevice *)   pPciDeviceHC;
    92     /** GC pointer to associated PCI device structure. */
    93     GCPTRTYPE(struct PCIDevice *)   pPciDeviceGC;
    94     /** HC pointer to associated PCI bus structure. */
    95     HCPTRTYPE(PPDMPCIBUS)           pPciBusHC;
    9694    /** GC pointer to associated PCI bus structure. */
    9795    GCPTRTYPE(PPDMPCIBUS)           pPciBusGC;
     96#if GC_ARCH_BITS == 32
     97    uint32_t                        Alignment0;
     98#endif
    9899} PDMDEVINSINT;
    99100
     
    480481    /** Pointer to the next queue in the list. */
    481482    HCPTRTYPE(PPDMQUEUE)    pNext;
    482     /** Queue type. */
    483     PDMQUEUETYPE            enmType;
    484483    /** Type specific data. */
    485484    union
     
    516515        } Ext;
    517516    } u;
    518     /** Pointer to the VM. */
    519     HCPTRTYPE(PVM)                          pVMHC;
    520     /** Pointer to the GC VM and indicator for GC enabled queue.
    521      * If this is NULL, the queue cannot be used in GC.
    522      */
    523     GCPTRTYPE(PVM)                          pVMGC;
     517    /** Queue type. */
     518    PDMQUEUETYPE                            enmType;
    524519    /** The interval between checking the queue for events.
    525520     * The realtime timer below is used to do the waiting.
     
    528523    /** Interval timer. Only used if cMilliesInterval is non-zero. */
    529524    PTMTIMERHC                              pTimer;
     525    /** Pointer to the VM. */
     526    HCPTRTYPE(PVM)                          pVMHC;
     527    /** LIFO of pending items - HC. */
     528    HCPTRTYPE(PPDMQUEUEITEMCORE) volatile   pPendingHC;
     529    /** Pointer to the GC VM and indicator for GC enabled queue.
     530     * If this is NULL, the queue cannot be used in GC.
     531     */
     532    GCPTRTYPE(PVM)                          pVMGC;
     533    /** LIFO of pending items - GC. */
     534    GCPTRTYPE(PPDMQUEUEITEMCORE)            pPendingGC;
    530535    /** Item size (bytes). */
    531536    RTUINT                                  cbItem;
    532537    /** Number of items in the queue. */
    533538    RTUINT                                  cItems;
    534     /** LIFO of pending items - HC. */
    535     HCPTRTYPE(PPDMQUEUEITEMCORE) volatile   pPendingHC;
    536     /** LIFO of pending items - GC. */
    537     GCPTRTYPE(PPDMQUEUEITEMCORE)            pPendingGC;
    538539    /** Index to the free head (where we insert). */
    539540    uint32_t volatile                       iFreeHead;
     
    547548        /** Pointer to the free item - GC Ptr. */
    548549        GCPTRTYPE(PPDMQUEUEITEMCORE) volatile pItemGC;
     550#if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32
     551        uint32_t                              Alignment0;
     552#endif
    549553    }                                       aFreeItems[1];
    550554} PDMQUEUE;
     
    579583    /** This operation to perform. */
    580584    PDMDEVHLPTASKOP         enmOp;
     585#if HC_ARCH_BITS == 64
     586    uint32_t                Alignment0;
     587#endif
    581588    /** Parameters to the operation. */
    582589    union PDMDEVHLPTASKPARAMS
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