VirtualBox

Changeset 70605 in vbox


Ignore:
Timestamp:
Jan 16, 2018 6:03:23 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120316
Message:

DevVGA: cleanup in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp

    r69391 r70605  
    282282typedef struct HGSMIBUFFERCONTEXT
    283283{
    284     const HGSMIBUFFERHEADER *pHeader; /* The original buffer header. */
    285     void *pvData;                     /* Payload data in the buffer./ */
    286     uint32_t cbData;                  /* Size of data  */
     284    const volatile HGSMIBUFFERHEADER *pHeader; /**< The original buffer header. */
     285    void *pvData;                              /**< Payload data in the buffer./ */
     286    uint32_t cbData;                           /**< Size of data  */
    287287} HGSMIBUFFERCONTEXT;
    288288
     
    315315        void *pvBuffer = HGSMIOffsetToPointer(pArea, offBuffer);
    316316        HGSMIBUFFERHEADER header = *HGSMIBufferHeaderFromPtr(pvBuffer);
     317        ASMCompilerBarrier();
    317318
    318319        /* Quick check of the data size, it should be less than the maximum
     
    325326        {
    326327            HGSMIBUFFERTAIL tail = *HGSMIBufferTailFromPtr(pvBuffer, header.u32DataSize);
     328            ASMCompilerBarrier();
    327329
    328330            /* At least both header and tail structures are in the area. Check the checksum. */
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