VirtualBox

Changeset 9944

Show
Ignore:
Timestamp:
06/26/08 11:55:02 (5 months ago)
Author:
vboxsync
Message:

PAE fixes

Files:

Legend:

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

    r9893 r9944  
    424424                { 
    425425                    LogFlow(("pgmPoolMonitorChainChanging: pae pd iShw=%#x: %RX64 -> freeing it!\n", iShw, uShw.pPDPae->a[iShw].u)); 
    426                     pgmPoolFree(pPool->CTXSUFF(pVM), uShw.pPDPae->a[iShw].u & X86_PDE_PAE_PG_MASK, pPage->idx, iShw); 
     426                    pgmPoolFree(pPool->CTXSUFF(pVM),  
     427                                uShw.pPDPae->a[iShw].u & X86_PDE_PAE_PG_MASK,  
     428                                /* Note: hardcoded PAE implementation dependency */ 
     429                                (pPage->enmKind == PGMPOOLKIND_PAE_PD_FOR_PAE_PD) ? PGMPOOL_IDX_PAE_PD : pPage->idx,  
     430                                (pPage->enmKind == PGMPOOLKIND_PAE_PD_FOR_PAE_PD) ? iShw + (pPage->idx - PGMPOOL_IDX_PAE_PD_0) * X86_PG_PAE_ENTRIES : iShw); 
    427431                    uShw.pPDPae->a[iShw].u = 0; 
    428432                } 
     
    445449                    { 
    446450                        LogFlow(("pgmPoolMonitorChainChanging: pae pd iShw2=%#x: %RX64 -> freeing it!\n", iShw2, uShw.pPDPae->a[iShw2].u)); 
    447                         pgmPoolFree(pPool->CTXSUFF(pVM), uShw.pPDPae->a[iShw2].u & X86_PDE_PAE_PG_MASK, pPage->idx, iShw2); 
     451                        pgmPoolFree(pPool->CTXSUFF(pVM),  
     452                                    uShw.pPDPae->a[iShw2].u & X86_PDE_PAE_PG_MASK,  
     453                                    /* Note: hardcoded PAE implementation dependency */ 
     454                                    (pPage->enmKind == PGMPOOLKIND_PAE_PD_FOR_PAE_PD) ? PGMPOOL_IDX_PAE_PD : pPage->idx,  
     455                                    (pPage->enmKind == PGMPOOLKIND_PAE_PD_FOR_PAE_PD) ? iShw2 + (pPage->idx - PGMPOOL_IDX_PAE_PD_0) * X86_PG_PAE_ENTRIES : iShw2); 
    448456                        uShw.pPDPae->a[iShw2].u = 0; 
    449457                    } 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy