VirtualBox

Changeset 14753

Show
Ignore:
Timestamp:
11/28/08 03:48:12 (1 month ago)
Author:
vboxsync
Message:

pgmPoolMonitorChainChanging regression fix.

Files:

Legend:

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

    r14751 r14753  
    431431            case PGMPOOLKIND_ROOT_PAE_PD: 
    432432            { 
    433                 unsigned iGst     = off / sizeof(X86PTE);           // 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
    436436                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); 
    438440                for (unsigned i = 0; i < 2; i++, iShw++) 
    439441                { 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy