Changeset 29027 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- May 4, 2010 2:33:41 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 61067
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r28800 r29027 743 743 744 744 745 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, u nsignedCachePolicy)745 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 746 746 { 747 747 /* … … 759 759 pMemLnx->Core.u.Phys.PhysBase = PhysAddr; 760 760 pMemLnx->Core.u.Phys.fAllocated = false; 761 pMemLnx->Core.u.Phys. CachePolicy =CachePolicy;761 pMemLnx->Core.u.Phys.uCachePolicy = uCachePolicy; 762 762 Assert(!pMemLnx->cPages); 763 763 *ppMem = &pMemLnx->Core; … … 1166 1166 */ 1167 1167 Assert(pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_PHYS && !pMemLnxToMap->Core.u.Phys.fAllocated); 1168 pMemLnx->Core.pv = (pMemLnxToMap->Core.u.Phys.CachePolicy == RTMEM_CACHE_POLICY_MMIO)1169 1170 1168 pMemLnx->Core.pv = pMemLnxToMap->Core.u.Phys.uCachePolicy == RTMEM_CACHE_POLICY_MMIO 1169 ? ioremap_nocache(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb) 1170 : ioremap(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb); 1171 1171 if (pMemLnx->Core.pv) 1172 1172 {
Note:
See TracChangeset
for help on using the changeset viewer.