VirtualBox

Changeset 2974 in vbox


Ignore:
Timestamp:
Jun 1, 2007 1:08:48 PM (18 years ago)
Author:
vboxsync
Message:

Use MmMapLockedPagesSpecifyCache instead of MmMapLockedPages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win32/SUPDrv-win32.cpp

    r2653 r2974  
    608608        __try
    609609        {
    610             pMem->pvR3 = (RTR3PTR)MmMapLockedPages(pMem->u.cont.pMdl, UserMode);
     610            pMem->pvR3 = (RTR3PTR)MmMapLockedPagesSpecifyCache(pMem->u.cont.pMdl, UserMode, MmCached, NULL, FALSE, NormalPagePriority);
    611611            if (pMem->pvR3)
    612612            {
     
    709709        __try
    710710        {
    711             pMem->pvR3 = (RTR3PTR)MmMapLockedPages(pMem->u.mem.pMdl, UserMode);
     711            pMem->pvR3 = (RTR3PTR)MmMapLockedPagesSpecifyCache(pMem->u.mem.pMdl, UserMode, MmCached, NULL, FALSE, NormalPagePriority);
    712712            if (pMem->pvR3)
    713713            {
     
    10071007    __try
    10081008    {
    1009         *ppGip = (PCSUPGLOBALINFOPAGE)MmMapLockedPages(pDevExt->pGipMdl, UserMode);
     1009        *ppGip = (PCSUPGLOBALINFOPAGE)MmMapLockedPagesSpecifyCache(pDevExt->pGipMdl, UserMode, MmCached, NULL, FALSE, NormalPagePriority);
    10101010    }
    10111011    __except(EXCEPTION_EXECUTE_HANDLER)
     
    11011101            __try
    11021102            {
    1103                 void *pvMapping = MmMapLockedPages(pMdl, KernelMode);
     1103                void *pvMapping = MmMapLockedPagesSpecifyCache(pMdl, KernelMode, MmCached, NULL, FALSE, NormalPagePriority);
    11041104                if (pvMapping)
    11051105                {
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