VirtualBox

Changeset 29027 in vbox for trunk/src/VBox/Runtime/r0drv/os2


Ignore:
Timestamp:
May 4, 2010 2:33:41 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61067
Message:

RTR0MemObjEnterPhys/rtR0MemObjNativeEnterPhys: Validate the cache policy in the common code. Use uint32_t as parameter type. All native implementations must set the policy member.

File:
1 edited

Legend:

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

    r28777 r29027  
    231231
    232232
    233 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, unsigned CachePolicy)
    234 {
    235     AssertReturn(CachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     233int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     234{
     235    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
    236236
    237237    /* create the object. */
     
    243243    pMemOs2->Core.u.Phys.fAllocated = false;
    244244    pMemOs2->Core.u.Phys.PhysBase = Phys;
     245    pMemOs2->Core.u.Phys.uCachePolicy = uCachePolicy;
    245246    *ppMem = &pMemOs2->Core;
    246247    return VINF_SUCCESS;
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