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/r0drv/freebsd/memobj-r0drv-freebsd.c

    r28777 r29027  
    496496
    497497
    498 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, unsigned CachePolicy)
    499 {
    500     AssertReturn(CachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     498int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
     499{
     500    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
    501501
    502502    /* create the object. */
     
    508508    pMemFreeBSD->Core.u.Phys.fAllocated = false;
    509509    pMemFreeBSD->Core.u.Phys.PhysBase = Phys;
     510    pMemFreeBSD->Core.u.Phys.uCachePolicy = uCachePolicy;
    510511    *ppMem = &pMemFreeBSD->Core;
    511512    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