VirtualBox

Changeset 71246 in vbox for trunk


Ignore:
Timestamp:
Mar 6, 2018 5:12:38 PM (7 years ago)
Author:
vboxsync
Message:

gvm.h: Alignment fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/gvm.h

    r71222 r71246  
    3131#include <VBox/types.h>
    3232#include <iprt/thread.h>
     33#include <iprt/assertcompile.h>
    3334
    3435
     
    105106     * Same same as VM::cCpus. */
    106107    uint32_t        cCpus;
    107     uint32_t        padding;
     108    uint8_t         abPadding[HC_ARCH_BITS == 32 ? 16 : 4];
    108109
    109110    /** The GVMM per vm data. */
     
    148149    GVMCPU          aCpus[1];
    149150} GVM;
     151AssertCompileMemberOffset(GVM, gvmm,   40);
     152AssertCompileMemberOffset(GVM, gmm,    40 + 256);
     153#ifdef VBOX_WITH_NEM_R0
     154AssertCompileMemberOffset(GVM, nem,    40 + 256 + 512);
     155AssertCompileMemberOffset(GVM, rawpci, 40 + 256 + 512 + 128);
     156AssertCompileMemberOffset(GVM, aCpus,  40 + 256 + 512 + 128 + 64);
     157#else
     158AssertCompileMemberOffset(GVM, rawpci, 40 + 256 + 512);
     159AssertCompileMemberOffset(GVM, aCpus,  40 + 256 + 512 + 64);
     160#endif
    150161
    151162/** The GVM::u32Magic value (Wayne Shorter). */
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