Changeset 38958 in vbox for trunk/src/VBox/Runtime/r0drv/nt
- Timestamp:
- Oct 6, 2011 12:54:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r36555 r38958 497 497 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 498 498 { 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); 500 500 501 501 /* … … 780 780 PHYSICAL_ADDRESS Phys; 781 781 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); 783 784 if (pv) 784 785 {
Note:
See TracChangeset
for help on using the changeset viewer.