VirtualBox

Changeset 25243 in vbox


Ignore:
Timestamp:
Dec 8, 2009 1:12:24 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55760
Message:

PGMAllHandler.cpp: Fixed bug in PGMAllHandler.cpp where REMNotifyHandlerPhysicalModify would be called with the wrong value. (Fortunately, nobody uses this API.)

File:
1 edited

Legend:

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

    r24713 r25243  
    539539                if (RTAvlroGCPhysInsert(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, &pCur->Core))
    540540                {
    541                     PGMPHYSHANDLERTYPE  enmType = pCur->enmType;
    542                     RTGCPHYS            GCPhysLast = pCur->Core.KeyLast - GCPhys + 1;
     541                    PGMPHYSHANDLERTYPE  enmType       = pCur->enmType;
     542                    RTGCPHYS            cb            = GCPhysLast - GCPhys + 1;
    543543                    bool                fHasHCHandler = !!pCur->pfnHandlerR3;
    544544
     
    550550
    551551#ifndef IN_RING3
    552                     REMNotifyHandlerPhysicalModify(pVM, enmType, GCPhysCurrent, GCPhys,
    553                                                    GCPhysLast - GCPhys + 1, fHasHCHandler, fRestoreAsRAM);
     552                    REMNotifyHandlerPhysicalModify(pVM, enmType, GCPhysCurrent, GCPhys, cb,
     553                                                   fHasHCHandler, fRestoreAsRAM);
    554554#else
    555                     REMR3NotifyHandlerPhysicalModify(pVM, enmType, GCPhysCurrent, GCPhys,
    556                                                      GCPhysLast, fHasHCHandler, fRestoreAsRAM);
     555                    REMR3NotifyHandlerPhysicalModify(pVM, enmType, GCPhysCurrent, GCPhys, cb,
     556                                                     fHasHCHandler, fRestoreAsRAM);
    557557#endif
    558558                    PGM_INVL_ALL_VCPU_TLBS(pVM);
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