VirtualBox

Changeset 26263 in vbox for trunk


Ignore:
Timestamp:
Feb 5, 2010 2:24:13 AM (15 years ago)
Author:
vboxsync
Message:

VMM: More warnings.

Location:
trunk/src/VBox/VMM
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r26152 r26263  
    20052005     */
    20062006    /** @todo we should check the 64 bits capabilities too! */
    2007     uint32_t au32CpuId[8] = {0};
     2007    uint32_t au32CpuId[8] = {0,0,0,0, 0,0,0,0};
    20082008    ASMCpuId(0, &au32CpuId[0], &au32CpuId[1], &au32CpuId[2], &au32CpuId[3]);
    20092009    ASMCpuId(1, &au32CpuId[4], &au32CpuId[5], &au32CpuId[6], &au32CpuId[7]);
  • trunk/src/VBox/VMM/PATM/CSAM.cpp

    r25647 r26263  
    22942294    {
    22952295        // Cache record for PATMGCVirtToHCVirt
    2296         CSAMP2GLOOKUPREC cacheRec = {0};
     2296        CSAMP2GLOOKUPREC cacheRec;
     2297        RT_ZERO(cacheRec);
    22972298
    22982299        STAM_PROFILE_START(&pVM->csam.s.StatTime, a);
     
    24512452            if (pHandler)
    24522453            {
    2453                 CSAMP2GLOOKUPREC cacheRec = {0};            /* Cache record for PATMGCVirtToHCVirt. */
    24542454                PCSAMPAGE pPage = NULL;
     2455                CSAMP2GLOOKUPREC cacheRec;                  /* Cache record for PATMGCVirtToHCVirt. */
     2456                RT_ZERO(cacheRec);
    24552457
    24562458                Log(("CSAMCheckGates: checking previous call instruction %RRv\n", pHandler));
     
    25182520        {
    25192521            RTRCPTR pHandler;
    2520             CSAMP2GLOOKUPREC cacheRec = {0};            /* Cache record for PATMGCVirtToHCVirt. */
    25212522            PCSAMPAGE pPage = NULL;
    25222523            DBGFSELINFO selInfo;
     2524            CSAMP2GLOOKUPREC cacheRec;                  /* Cache record for PATMGCVirtToHCVirt. */
     2525            RT_ZERO(cacheRec);
    25232526
    25242527            pHandler = VBOXIDTE_OFFSET(*pGuestIdte);
  • trunk/src/VBox/VMM/PATM/PATM.cpp

    r26152 r26263  
    51025102{
    51035103#ifdef PATM_RESOLVE_CONFLICTS_WITH_JUMP_PATCHES
    5104     PATCHINFO            patch = {0};
     5104    PATCHINFO            patch;
    51055105    DISCPUSTATE          cpu;
    51065106    R3PTRTYPE(uint8_t *) pInstrHC;
     
    51095109    int                  rc;
    51105110
     5111    RT_ZERO(patch);
    51115112    pInstrHC = PATMGCVirtToHCVirt(pVM, &patch, pInstrGC);
    51125113    cpu.mode = (pConflictPatch->flags & PATMFL_CODE32) ? CPUMODE_32BIT : CPUMODE_16BIT;
  • trunk/src/VBox/VMM/TRPM.cpp

    r25825 r26263  
    594594     * exports in TRPMR3Init().
    595595     */
    596     RTRCPTR aRCPtrs[TRPM_HANDLER_MAX] = {0};
    597     int rc;
    598     rc = PDMR3LdrGetSymbolRC(pVM, VMMGC_MAIN_MODULE_NAME, "TRPMGCHandlerInterupt", &aRCPtrs[TRPM_HANDLER_INT]);
     596    RTRCPTR aRCPtrs[TRPM_HANDLER_MAX];
     597    RT_ZERO(aRCPtrs);
     598    int rc = PDMR3LdrGetSymbolRC(pVM, VMMGC_MAIN_MODULE_NAME, "TRPMGCHandlerInterupt", &aRCPtrs[TRPM_HANDLER_INT]);
    599599    AssertReleaseMsgRC(rc, ("Couldn't find TRPMGCHandlerInterupt in VMMGC.gc!\n"));
    600600
  • trunk/src/VBox/VMM/VMMAll/TRPMAll.cpp

    r25866 r26263  
    493493            if (rc == VINF_SUCCESS)
    494494            {
    495                 VBOXGDTR gdtr = {0};
     495                VBOXGDTR gdtr = {0, 0};
    496496                bool     fConforming = false;
    497497                int      idx = 0;
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