VirtualBox

Changeset 22748 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 3, 2009 1:32:31 PM (15 years ago)
Author:
vboxsync
Message:

PGM pool updates

File:
1 edited

Legend:

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

    r22747 r22748  
    13831383{
    13841384    unsigned cErrors = 0;
    1385     Assert(pPage->iFirstPresent != ~0);
    13861385#ifdef VBOX_STRICT
    1387     for (unsigned i = 0; i < pPage->iFirstPresent; i++)
    1388         AssertMsg(!pShwPT->a[i].n.u1Present, ("Unexpected PTE: idx=%d %RX64 (first=%d)\n", i, pShwPT->a[i].u,  pPage->iFirstPresent));
     1386    if (pPage->iFirstPresent != NIL_PGMPOOL_PRESENT_INDEX);
     1387        for (unsigned i = 0; i < pPage->iFirstPresent; i++)
     1388            AssertMsg(!pShwPT->a[i].n.u1Present, ("Unexpected PTE: idx=%d %RX64 (first=%d)\n", i, pShwPT->a[i].u,  pPage->iFirstPresent));
    13891389#endif
    13901390    for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++)
     
    14441444    unsigned cChanged = 0;
    14451445
    1446     Assert(pPage->iFirstPresent != ~0);
    14471446#ifdef VBOX_STRICT
    1448     for (unsigned i = 0; i < pPage->iFirstPresent; i++)
    1449         AssertMsg(!pShwPT->a[i].n.u1Present, ("Unexpected PTE: idx=%d %RX64 (first=%d)\n", i, pShwPT->a[i].u,  pPage->iFirstPresent));
     1447    if (pPage->iFirstPresent != NIL_PGMPOOL_PRESENT_INDEX);
     1448        for (unsigned i = 0; i < pPage->iFirstPresent; i++)
     1449            AssertMsg(!pShwPT->a[i].n.u1Present, ("Unexpected PTE: idx=%d %RX64 (first=%d)\n", i, pShwPT->a[i].u,  pPage->iFirstPresent));
    14501450#endif
    14511451    for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++)
     
    25232523#ifdef PGMPOOL_WITH_USER_TRACKING
    25242524                        pPage->cPresent = 0;
    2525                         pPage->iFirstPresent = ~0;
     2525                        pPage->iFirstPresent = NIL_PGMPOOL_PRESENT_INDEX;
    25262526#endif
    25272527                    }
     
    46674667#ifdef PGMPOOL_WITH_USER_TRACKING
    46684668    pPage->cPresent = 0;
    4669     pPage->iFirstPresent = ~0;
     4669    pPage->iFirstPresent = NIL_PGMPOOL_PRESENT_INDEX;
    46704670    pPage->pvLastAccessHandlerFault = 0;
    46714671    pPage->cLastAccessHandlerCount  = 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