VirtualBox

Changeset 38958 in vbox for trunk/src/VBox/Runtime/r0drv/nt


Ignore:
Timestamp:
Oct 6, 2011 12:54:31 PM (13 years ago)
Author:
vboxsync
Message:

RTR0MemObjEnterPhys/NT: Support RTMEM_CACHE_POLICY_MMIO.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp

    r36555 r38958  
    497497DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
    498498{
    499     AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
     499    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE || uCachePolicy == RTMEM_CACHE_POLICY_MMIO, VERR_NOT_SUPPORTED);
    500500
    501501    /*
     
    780780        PHYSICAL_ADDRESS Phys;
    781781        Phys.QuadPart = pMemNtToMap->Core.u.Phys.PhysBase;
    782         void *pv = MmMapIoSpace(Phys, pMemNtToMap->Core.cb, MmCached); /** @todo add cache type to fProt. */
     782        void *pv = MmMapIoSpace(Phys, pMemNtToMap->Core.cb,
     783                                pMemNtToMap->Core.u.Phys.uCachePolicy == RTMEM_CACHE_POLICY_MMIO ? MmNonCached : MmCached);
    783784        if (pv)
    784785        {
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