Changeset 28777 in vbox for trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
- Timestamp:
- Apr 26, 2010 7:45:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r26869 r28777 747 747 748 748 749 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb )749 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, unsigned CachePolicy) 750 750 { 751 751 /* … … 763 763 pMemLnx->Core.u.Phys.PhysBase = PhysAddr; 764 764 pMemLnx->Core.u.Phys.fAllocated = false; 765 pMemLnx->Core.u.Phys.CachePolicy = CachePolicy; 765 766 Assert(!pMemLnx->cPages); 766 767 *ppMem = &pMemLnx->Core; … … 1169 1170 */ 1170 1171 Assert(pMemLnxToMap->Core.enmType == RTR0MEMOBJTYPE_PHYS && !pMemLnxToMap->Core.u.Phys.fAllocated); 1171 pMemLnx->Core.pv = ioremap(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb); 1172 pMemLnx->Core.pv = (pMemLnx->Core.u.Phys.CachePolicy == RTMEM_CACHE_POLICY_MMIO) 1173 ? ioremap_nocache(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb) 1174 : ioremap(pMemLnxToMap->Core.u.Phys.PhysBase, pMemLnxToMap->Core.cb); 1172 1175 if (pMemLnx->Core.pv) 1173 1176 {
Note:
See TracChangeset
for help on using the changeset viewer.