Changeset 14753 in vbox for trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
- Timestamp:
- Nov 28, 2008 2:48:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r14751 r14753 431 431 case PGMPOOLKIND_ROOT_PAE_PD: 432 432 { 433 unsigned iGst = off / sizeof(X86P TE); // ASSUMING 32-bit guest paging!434 unsigned iShwPdpt = iGst & 3;435 unsigned iShw = iGst / 4;433 unsigned iGst = off / sizeof(X86PDE); // ASSUMING 32-bit guest paging! 434 unsigned iShwPdpt = iGst % 256; 435 unsigned iShw = iGst / 2; 436 436 Assert(pPage->idx == PGMPOOL_IDX_PAE_PD); 437 uShw.pv = PGMPOOL_PAGE_2_PTR(pPool->CTX_SUFF(pVM), pPage + 1 + iShwPdpt); 437 PPGMPOOLPAGE pPage2 = pPage + 1 + iShwPdpt; 438 Assert(pPage2->idx == PGMPOOL_IDX_PAE_PD_0 + iShwPdpt); 439 uShw.pv = PGMPOOL_PAGE_2_PTR(pPool->CTX_SUFF(pVM), pPage2); 438 440 for (unsigned i = 0; i < 2; i++, iShw++) 439 441 {
Note:
See TracChangeset
for help on using the changeset viewer.