Changeset 22748 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Sep 3, 2009 1:32:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r22747 r22748 1383 1383 { 1384 1384 unsigned cErrors = 0; 1385 Assert(pPage->iFirstPresent != ~0);1386 1385 #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)); 1389 1389 #endif 1390 1390 for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++) … … 1444 1444 unsigned cChanged = 0; 1445 1445 1446 Assert(pPage->iFirstPresent != ~0);1447 1446 #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)); 1450 1450 #endif 1451 1451 for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++) … … 2523 2523 #ifdef PGMPOOL_WITH_USER_TRACKING 2524 2524 pPage->cPresent = 0; 2525 pPage->iFirstPresent = ~0;2525 pPage->iFirstPresent = NIL_PGMPOOL_PRESENT_INDEX; 2526 2526 #endif 2527 2527 } … … 4667 4667 #ifdef PGMPOOL_WITH_USER_TRACKING 4668 4668 pPage->cPresent = 0; 4669 pPage->iFirstPresent = ~0;4669 pPage->iFirstPresent = NIL_PGMPOOL_PRESENT_INDEX; 4670 4670 pPage->pvLastAccessHandlerFault = 0; 4671 4671 pPage->cLastAccessHandlerCount = 0;
Note:
See TracChangeset
for help on using the changeset viewer.