VirtualBox

Ignore:
Timestamp:
Apr 26, 2010 7:45:16 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60665
Message:

iprt: added CachePolicy parameter to RTR0MemObjEnterPhys()

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-os2.cpp

    r24287 r28777  
    254254     */
    255255    size_t cb = RT_ALIGN_Z(VMMDEV_RAM_SIZE, PAGE_SIZE);
    256     int rc = RTR0MemObjEnterPhys(&g_MemObjMMIO, PhysMMIOBase, cb);
     256    int rc = RTR0MemObjEnterPhys(&g_MemObjMMIO, PhysMMIOBase, cb, RTMEM_CACHE_POLICY_DONT_CARE);
    257257    if (RT_FAILURE(rc))
    258258    {
    259259        cb = _4K;
    260         rc = RTR0MemObjEnterPhys(&g_MemObjMMIO, PhysMMIOBase, cb);
     260        rc = RTR0MemObjEnterPhys(&g_MemObjMMIO, PhysMMIOBase, cb, RTMEM_CACHE_POLICY_DONT_CARE);
    261261    }
    262262    if (RT_FAILURE(rc))
     
    300300            g_MemObjMMIO = g_MemMapMMIO = NIL_RTR0MEMOBJ;
    301301
    302             rc = RTR0MemObjEnterPhys(&g_MemObjMMIO, PhysMMIOBase, cb);
     302            rc = RTR0MemObjEnterPhys(&g_MemObjMMIO, PhysMMIOBase, cb, RTMEM_CACHE_POLICY_DONT_CARE);
    303303            if (RT_SUCCESS(rc))
    304304            {
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r28516 r28777  
    125125                if (hFictive == NIL_RTR0MEMOBJ)
    126126                {
    127                     rc = RTR0MemObjEnterPhys(&hObj, VBOXGUEST_HYPERVISOR_PHYSICAL_START, cbHypervisor + _4M);
     127                    rc = RTR0MemObjEnterPhys(&hObj, VBOXGUEST_HYPERVISOR_PHYSICAL_START, cbHypervisor + _4M, RTMEM_CACHE_POLICY_DONT_CARE);
    128128                    if (RT_FAILURE(rc))
    129129                        break;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette