VirtualBox

Changeset 22922 in vbox


Ignore:
Timestamp:
Sep 10, 2009 9:55:22 PM (15 years ago)
Author:
vboxsync
Message:

VBox/uvm.h: major mess up! The per component data was declared as structs instead of unions.

File:
1 edited

Legend:

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

    r21515 r22922  
    3434
    3535#include <VBox/types.h>
     36#include <iprt/assert.h>
    3637
    3738
     
    5152
    5253    /** The VM internal data. */
    53     struct
     54    union
    5455    {
    5556#ifdef ___VMInternal_h
     
    5960    } vm;
    6061} UVMCPU;
     62AssertCompileMemberAlignment(UVMCPU, vm, 8);
    6163
    6264
     
    8587
    8688    /** The VM internal data. */
    87     struct
     89    union
    8890    {
    8991#ifdef ___VMInternal_h
     
    9496
    9597    /** The MM data. */
    96     struct
     98    union
    9799    {
    98100#ifdef ___MMInternal_h
     
    103105
    104106    /** The PDM data. */
    105     struct
     107    union
    106108    {
    107109#ifdef ___PDMInternal_h
     
    112114
    113115    /** The STAM data. */
    114     struct
     116    union
    115117    {
    116118#ifdef ___STAMInternal_h
     
    123125    UVMCPU                      aCpus[1];
    124126} UVM;
     127AssertCompileMemberAlignment(UVM, vm, 8);
     128AssertCompileMemberAlignment(UVM, mm, 8);
     129AssertCompileMemberAlignment(UVM, pdm, 8);
     130AssertCompileMemberAlignment(UVM, stam, 8);
     131AssertCompileMemberAlignment(UVM, aCpus[0], 8);
     132AssertCompileMemberAlignment(UVM, aCpus[1], 8);
    125133
    126134/** The UVM::u32Magic value (Brad Mehldau). */
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