VirtualBox

Changeset 686 in vbox for trunk


Ignore:
Timestamp:
Feb 6, 2007 5:04:10 AM (18 years ago)
Author:
vboxsync
Message:

Alignment fixes for windows. (structure packing is a strange thing business)

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vm.h

    r251 r686  
    508508        struct VMINT    s;
    509509#endif
    510         char        padding[640];       /* multiple of 32 */
     510        char        padding[672];       /* multiple of 32 */
    511511    } vm;
    512512
  • trunk/src/VBox/VMM/EMInternal.h

    r468 r686  
    257257        /** Padding used in the other rings.
    258258         * This must be larger than jmp_buf on any supported platform. */
    259         char                achPaddingFatalLongJump[HC_ARCH_BITS == 32 ? 176 : 208];
     259        char                achPaddingFatalLongJump[HC_ARCH_BITS == 32 ? 176 : 256];
    260260#ifdef IN_RING3
    261261        /** Long buffer jump for fatal VM errors.
     
    308308    HCPTRTYPE(PAVLPVNODECORE) pCliStatTree;
    309309    STAMCOUNTER             StatTotalClis;
     310#if 0
    310311    /** 64-bit Visual C++ rounds the struct size up to 16 byte. */
    311312    uint64_t                padding1;
     313#endif
    312314
    313315} EM;
  • trunk/src/VBox/VMM/PGMInternal.h

    r457 r686  
    643643    /** AVL node code with the (HC) physical address of this page. */
    644644    AVLOHCPHYSNODECORE  Core;
    645 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32 && defined(IN_GC)
     645#if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32 && defined(IN_GC) && !defined(_MSC_VER) /** @todo figure out this one. */
    646646    uint32_t            Alignment0; /**< Alignment. */
    647647#endif
  • trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp

    r527 r686  
    8484    GEN_CHECK_SIZE(CPUMCTXCORE);
    8585    GEN_CHECK_SIZE(STAMRATIOU32);
     86    GEN_CHECK_SIZE(AVLOHCPHYSNODECORE);
     87    GEN_CHECK_SIZE(AVLOGCPHYSNODECORE);
     88    GEN_CHECK_SIZE(AVLROGCPHYSNODECORE);
     89    GEN_CHECK_SIZE(AVLOGCPTRNODECORE);
     90    GEN_CHECK_SIZE(AVLROGCPTRNODECORE);
     91    GEN_CHECK_SIZE(AVLOIOPORTNODECORE);
     92    GEN_CHECK_SIZE(AVLROIOPORTNODECORE);
    8693
    8794    GEN_CHECK_SIZE(DBGF);
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