VirtualBox

Changeset 80313 in vbox


Ignore:
Timestamp:
Aug 15, 2019 11:11:50 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132771
Message:

vm.h,gvm.h: Fix 32-bit header syntax checking.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r80311 r80313  
    244244#  pragma GCC diagnostic ignored "-Winvalid-offsetof"
    245245# endif
     246AssertCompileMemberAlignment(GVM, u32Magic, 64);
    246247AssertCompileMemberAlignment(GVM, gvmm,     64);
    247248AssertCompileMemberAlignment(GVM, gmm,      64);
  • trunk/include/VBox/vmm/vm.h

    r80309 r80313  
    12471247
    12481248    /** Padding - the unions must be aligned on a 64 bytes boundary. */
    1249     uint8_t                     abAlignment3[24];
     1249    uint8_t                     abAlignment3[HC_ARCH_BITS == 64 ? 24 : 52];
    12501250
    12511251    /** CPUM part. */
     
    14631463    /** Padding for aligning the structure size on a page boundrary. */
    14641464#ifdef VBOX_WITH_REM
    1465     uint8_t         abAlignment2[2520       - sizeof(PVMCPUR0) * VMM_MAX_CPU_COUNT];
    1466 #else
    1467     uint8_t         abAlignment2[2520 + 256 - sizeof(PVMCPUR0) * VMM_MAX_CPU_COUNT];
     1465    uint8_t         abAlignment2[3032       - (sizeof(PVMCPUR3) + sizeof(PVMCPUR0)) * VMM_MAX_CPU_COUNT];
     1466#else
     1467    uint8_t         abAlignment2[3032 + 256 - (sizeof(PVMCPUR3) + sizeof(PVMCPUR0)) * VMM_MAX_CPU_COUNT];
    14681468#endif
    14691469
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