VirtualBox

Changeset 13047 in vbox for trunk


Ignore:
Timestamp:
Oct 7, 2008 1:24:42 PM (16 years ago)
Author:
vboxsync
Message:

AVLROGCPTRNODECORE: alignment adjustment.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/avl.h

    r9387 r13047  
    519519    /** Height of this tree: max(height(left), height(right)) + 1 */
    520520    unsigned char       uchHeight;
    521     unsigned char       padding[GC_ARCH_BITS == 64 ? 7 : 3];
     521    unsigned char       padding[GC_ARCH_BITS == 64 ? 7 : 7];
    522522} AVLROGCPTRNODECORE, *PAVLROGCPTRNODECORE;
    523523
     
    633633#if HC_ARCH_BITS == 64 || GC_ARCH_BITS == 64
    634634    unsigned char       Padding[7]; /**< Alignment padding. */
    635 #endif 
     635#endif
    636636} AVLOHCPHYSNODECORE, *PAVLOHCPHYSNODECORE;
    637637
  • trunk/src/VBox/VMM/PGMInternal.h

    r13046 r13047  
    444444    /** Core node for the tree based on virtual ranges. */
    445445    AVLROGCPTRNODECORE                  Core;
    446 #if GC_ARCH_BITS == 32
    447     /** Alignment padding. */
    448     uint32_t                            u32Padding;
    449 #endif
     446    /** Size of the range (in bytes). */
     447    RTGCUINTPTR                         cb;
     448    /** Number of cache pages. */
     449    uint32_t                            cPages;
    450450    /** Access type. */
    451451    PGMVIRTHANDLERTYPE                  enmType;
    452     /** Number of cache pages. */
    453     uint32_t                            cPages;
    454 
    455     /** Size of the range (in bytes). */
    456     RTGCUINTPTR                         cb;
    457452    /** Pointer to the RC callback function. */
    458453    RCPTRTYPE(PFNPGMRCVIRTHANDLER)      pfnHandlerRC;
    459 #if GC_ARCH_BITS == 64
    460     RTRCPTR                             padding1;
     454#if HC_ARCH_BITS == 64
     455    RTRCPTR                             padding;
    461456#endif
    462457    /** Pointer to the R3 callback function for invalidation. */
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