VirtualBox

Changeset 25251 in vbox


Ignore:
Timestamp:
Dec 8, 2009 2:39:01 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55771
Message:

PGMAllPhys.cpp: -Wshadow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r24927 r25251  
    15841584    {
    15851585#ifdef IN_RING3
    1586         PPGMPHYSHANDLER pPhys = (PPGMPHYSHANDLER)RTAvlroGCPhysRangeGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys);
     1586        pPhys = (PPGMPHYSHANDLER)RTAvlroGCPhysRangeGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys);
    15871587        AssertReleaseMsg(pPhys, ("GCPhys=%RGp cb=%#x\n", GCPhys, cb));
    15881588        Assert(GCPhys >= pPhys->Core.Key && GCPhys <= pPhys->Core.KeyLast);
     
    19661966        if (fMoreVirt && !pVirt)
    19671967        {
    1968             int rc = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pVirt, &iVirtPage);
     1968            rc = pgmHandlerVirtualFindByPhysAddr(pVM, GCPhys, &pVirt, &iVirtPage);
    19691969            if (RT_SUCCESS(rc))
    19701970            {
     
    21412141                                  + (iVirtPage << PAGE_SHIFT)
    21422142                                  + (GCPhys & PAGE_OFFSET_MASK);
    2143                 STAM_PROFILE_START(&pVirt->Stat, h);
     2143                STAM_PROFILE_START(&pVirt->Stat, h2);
    21442144                int rc2 = pVirt->CTX_SUFF(pfnHandler)(pVM, GCPtr, pvDst, (void *)pvBuf, cbRange, PGMACCESSTYPE_WRITE, /*pCur->CTX_SUFF(pvUser)*/ NULL);
    2145                 STAM_PROFILE_STOP(&pVirt->Stat, h);
     2145                STAM_PROFILE_STOP(&pVirt->Stat, h2);
    21462146                if (rc2 == VINF_SUCCESS && rc == VINF_PGM_HANDLER_DO_DEFAULT)
    21472147                    rc = VINF_SUCCESS;
     
    28392839        /* copy */
    28402840        size_t cbWrite = PAGE_SIZE - ((RTGCUINTPTR)GCPtrDst & PAGE_OFFSET_MASK);
    2841         int rc = PGMPhysWrite(pVM, GCPhys, pvSrc, cbWrite);
     2841        rc = PGMPhysWrite(pVM, GCPhys, pvSrc, cbWrite);
    28422842        if (cbWrite >= cb || RT_FAILURE(rc))
    28432843            return rc;
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