VirtualBox

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


Ignore:
Timestamp:
Jun 26, 2008 9:55:02 AM (16 years ago)
Author:
vboxsync
Message:

PAE fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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                    }
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