VirtualBox

Ignore:
Timestamp:
Jul 28, 2016 9:57:29 PM (8 years ago)
Author:
vboxsync
Message:

TRPM: drop the pragma pack on struct TRPM too, and make sure GuestIdtr is naturally aligned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/TRPMInternal.h

    r62645 r62646  
    9595 * IMPORTANT! Keep the nasm version of this struct up-to-date.
    9696 */
    97 #pragma pack(4)
    9897typedef struct TRPM
    9998{
     
    133132    /** RC Pointer to the IDT shadow area (aIdt) in HMA. */
    134133    RCPTRTYPE(void *)       pvMonShwIdtRC;
     134    /** padding. */
     135    uint8_t                 au8Padding[2];
    135136    /** Current (last) Guest's IDTR. */
    136137    VBOXIDTR                GuestIdtr;
    137     /** padding. */
    138     uint8_t                 au8Padding[2];
    139138    /** Shadow IDT virtual write access handler type. */
    140139    PGMVIRTHANDLERTYPE      hShadowIdtWriteHandlerType;
     
    177176#endif
    178177} TRPM;
    179 #pragma pack()
     178AssertCompileMemberAlignment(TRPM, GuestIdtr.pIdt, 8);
    180179
    181180/** Pointer to TRPM Data. */
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