VirtualBox

Changeset 22928 in vbox


Ignore:
Timestamp:
Sep 10, 2009 11:00:29 PM (15 years ago)
Author:
vboxsync
Message:

VBox/uvm.h: another try.

File:
1 edited

Legend:

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

    r22927 r22928  
    9090    struct UVM     *pNext;
    9191
     92    /** Align the next member on a 32 byte boundrary. */
     93    uint8_t         abAlignment0[HC_ARCH_BITS == 32 ? 16 : 0];
     94
    9295    /** The VM internal data. */
    9396    union
     
    129132    UVMCPU                      aCpus[1];
    130133} UVM;
    131 AssertCompileMemberAlignment(UVM, vm, 8);
    132 AssertCompileMemberAlignment(UVM, mm, 8);
    133 AssertCompileMemberAlignment(UVM, pdm, 8);
    134 AssertCompileMemberAlignment(UVM, stam, 8);
     134AssertCompileMemberAlignment(UVM, vm, 32);
     135AssertCompileMemberAlignment(UVM, mm, 32);
     136AssertCompileMemberAlignment(UVM, pdm, 32);
     137AssertCompileMemberAlignment(UVM, stam, 32);
     138AssertCompileMemberAlignment(UVM, aCpus[0], 4);
    135139AssertCompileMemberAlignment(UVM, aCpus[0], 8);
     140AssertCompileMemberAlignment(UVM, aCpus[0], 16);
     141AssertCompileMemberAlignment(UVM, aCpus[0], 32);
     142AssertCompileMemberAlignment(UVM, aCpus[1], 4);
    136143AssertCompileMemberAlignment(UVM, aCpus[1], 8);
    137144
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