VirtualBox

Changeset 62032 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Jul 5, 2016 4:39:31 PM (9 years ago)
Author:
vboxsync
Message:

Devices/VGA: fixed alignment of CritSectIRQ (important for 32-bit debug builds)

Location:
trunk/src/VBox/Devices/Graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r61973 r62032  
    30533053                if (u32 == HGSMIOFFSET_VOID)
    30543054                {
    3055                     PDMCritSectEnter(&pThis->critSectIRQ, VERR_SEM_BUSY);
     3055                    PDMCritSectEnter(&pThis->CritSectIRQ, VERR_SEM_BUSY);
    30563056
    30573057                    if (pThis->fu32PendingGuestFlags == 0)
     
    30753075                    }
    30763076
    3077                     PDMCritSectLeave(&pThis->critSectIRQ);
     3077                    PDMCritSectLeave(&pThis->CritSectIRQ);
    30783078                }
    30793079                else
     
    59545954    }
    59555955
    5956     PDMR3CritSectDelete(&pThis->critSectIRQ);
     5956    PDMR3CritSectDelete(&pThis->CritSectIRQ);
    59575957    PDMR3CritSectDelete(&pThis->CritSect);
    59585958    return VINF_SUCCESS;
     
    61866186    AssertRCReturn(rc, rc);
    61876187
    6188     rc = PDMDevHlpCritSectInit(pDevIns, &pThis->critSectIRQ, RT_SRC_POS, "VGA#%u_IRQ", iInstance);
     6188    rc = PDMDevHlpCritSectInit(pDevIns, &pThis->CritSectIRQ, RT_SRC_POS, "VGA#%u_IRQ", iInstance);
    61896189    AssertRCReturn(rc, rc);
    61906190
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r61973 r62032  
    588588    /** The name of the VGA BIOS ROM file. */
    589589    R3PTRTYPE(char *)           pszVgaBiosFile;
     590# if HC_ARCH_BITS == 32
     591    uint32_t                    Padding9;
     592# endif
    590593
    591594# ifdef VBOX_WITH_HGSMI
     
    593596    RTIOPORT                    IOPortBase;
    594597#  ifdef VBOX_WITH_WDDM
    595     uint8_t                     Padding9[2];
     598    uint8_t                     Padding10[2];
    596599    /** Specifies guest driver caps, i.e. whether it can handle IRQs from the
    597600     * adapter, the way it can handle async HGSMI command completion, etc. */
     
    600603    uint32_t                    fHostCursorCapabilities;
    601604#  else
    602     uint8_t                     Padding10[14];
     605    uint8_t                     Padding11[14];
    603606#  endif
    604607
    605608    /** The critical section serializes the HGSMI IRQ setting/clearing. */
    606     PDMCRITSECT                 critSectIRQ;
     609    PDMCRITSECT                 CritSectIRQ;
    607610    /** VBVARaiseIRQ flags which were set when the guest was still processing previous IRQ. */
    608611    uint32_t                    fu32PendingGuestFlags;
    609     uint32_t                    Padding11;
     612    uint32_t                    Padding12;
    610613# endif /* VBOX_WITH_HGSMI */
    611614
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r61976 r62032  
    20822082    PPDMDEVINS pDevIns = pVGAState->pDevInsR3;
    20832083
    2084     PDMCritSectEnter(&pVGAState->critSectIRQ, VERR_SEM_BUSY);
     2084    PDMCritSectEnter(&pVGAState->CritSectIRQ, VERR_SEM_BUSY);
    20852085
    20862086    const uint32_t fu32CurrentGuestFlags = HGSMIGetHostGuestFlags(pVGAState->pHGSMI);
     
    21042104    }
    21052105
    2106     PDMCritSectLeave(&pVGAState->critSectIRQ);
     2106    PDMCritSectLeave(&pVGAState->CritSectIRQ);
    21072107}
    21082108
     
    21112111    PPDMDEVINS pDevIns = pThis->pDevInsR3;
    21122112
    2113     PDMCritSectEnter(&pThis->critSectIRQ, VERR_SEM_BUSY);
     2113    PDMCritSectEnter(&pThis->CritSectIRQ, VERR_SEM_BUSY);
    21142114
    21152115    if (HGSMIGetHostGuestFlags(pThis->pHGSMI) & HGSMIHOSTFLAGS_IRQ)
    21162116        PDMDevHlpPCISetIrqNoWait(pDevIns, 0, PDM_IRQ_LEVEL_HIGH);
    21172117
    2118     PDMCritSectLeave(&pThis->critSectIRQ);
     2118    PDMCritSectLeave(&pThis->CritSectIRQ);
    21192119}
    21202120
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