VirtualBox

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/include/internal/memobj.h

    r28800 r29027  
    188188            bool        fAllocated;
    189189            /** See RTMEM_CACHE_POLICY_XXX constants */
    190             unsigned    CachePolicy;
     190            uint32_t    uCachePolicy;
    191191        } Phys;
    192192
     
    385385 * @param   Phys            The physical address to start at, page aligned.
    386386 * @param   cb              The size of the object in bytes, page aligned.
    387  * @param   CachePolicy     One of the RTMEM_CACHE_XXX modes.
    388  */
    389 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, unsigned CachePolicy);
     387 * @param   uCachePolicy    One of the RTMEM_CACHE_XXX modes.
     388 */
     389int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy);
    390390
    391391/**
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