VirtualBox

Changeset 32348 in vbox for trunk


Ignore:
Timestamp:
Sep 9, 2010 12:28:05 PM (14 years ago)
Author:
vboxsync
Message:

RTR0MemObj*: Return VERR_NOT_SUPPORTED instead of VERR_NOT_IMPLEMENTED in a bunch of situations where the former is documented.

Location:
trunk/src/VBox/Runtime/r0drv
Files:
5 edited

Legend:

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

    r29255 r32348  
    609609int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
    610610{
    611     AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     611    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    612612
    613613    /*
     
    752752int rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    753753{
    754     return VERR_NOT_IMPLEMENTED;
     754    return VERR_NOT_SUPPORTED;
    755755}
    756756
     
    758758int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    759759{
    760     return VERR_NOT_IMPLEMENTED;
     760    return VERR_NOT_SUPPORTED;
    761761}
    762762
  • trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c

    r29877 r32348  
    518518int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
    519519{
    520     AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     520    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    521521
    522522    /* create the object. */
     
    698698/** @todo finish the implementation. */
    699699
    700     return VERR_NOT_IMPLEMENTED;
     700    return VERR_NOT_SUPPORTED;
    701701}
    702702
  • trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp

    r32303 r32348  
    497497int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
    498498{
    499     AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     499    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    500500
    501501    /*
     
    660660     * MmCreateSection(SEC_RESERVE) + MmMapViewInSystemSpace perhaps?
    661661     */
    662     return VERR_NOT_IMPLEMENTED;
     662    return VERR_NOT_SUPPORTED;
    663663}
    664664
     
    669669     * ZeCreateSection(SEC_RESERVE) + ZwMapViewOfSection perhaps?
    670670     */
    671     return VERR_NOT_IMPLEMENTED;
     671    return VERR_NOT_SUPPORTED;
    672672}
    673673
  • trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp

    r29027 r32348  
    197197int rtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment)
    198198{
    199     AssertMsgReturn(PhysHighest >= 16 *_1M, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_IMPLEMENTED);
     199    AssertMsgReturn(PhysHighest >= 16 *_1M, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_SUPPORTED);
    200200
    201201    /** @todo alignment  */
     
    233233int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
    234234{
    235     AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     235    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    236236
    237237    /* create the object. */
     
    303303int rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment)
    304304{
    305     return VERR_NOT_IMPLEMENTED;
     305    return VERR_NOT_SUPPORTED;
    306306}
    307307
     
    309309int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    310310{
    311     return VERR_NOT_IMPLEMENTED;
     311    return VERR_NOT_SUPPORTED;
    312312}
    313313
     
    359359        case RTR0MEMOBJTYPE_PHYS_NC:
    360360            AssertMsgFailed(("RTR0MEMOBJTYPE_PHYS_NC\n"));
    361             return VERR_NOT_IMPLEMENTED;
     361            return VERR_INTERNAL_ERROR_3;
    362362            break;
    363363
     
    435435        case RTR0MEMOBJTYPE_PHYS_NC:
    436436            AssertMsgFailed(("RTR0MEMOBJTYPE_PHYS_NC\n"));
    437             return VERR_NOT_IMPLEMENTED;
     437            return VERR_INTERNAL_ERROR_5;
    438438            break;
    439439
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c

    r30383 r32348  
    222222int rtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment)
    223223{
    224     AssertMsgReturn(PhysHighest >= 16 *_1M, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_IMPLEMENTED);
     224    AssertMsgReturn(PhysHighest >= 16 *_1M, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_SUPPORTED);
    225225
    226226    PRTR0MEMOBJSOLARIS pMemSolaris = (PRTR0MEMOBJSOLARIS)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb);
     
    271271int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy)
    272272{
    273     AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_IMPLEMENTED);
     273    AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED);
    274274
    275275    /* Create the object. */
     
    380380int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    381381{
    382     return VERR_NOT_IMPLEMENTED;
     382    return VERR_NOT_SUPPORTED;
    383383}
    384384
     
    387387{
    388388    /** @todo rtR0MemObjNativeMapKernel / Solaris - Should be fairly simple alloc kernel memory and memload it. */
    389     return VERR_NOT_IMPLEMENTED;
     389    return VERR_NOT_SUPPORTED;
    390390}
    391391
Note: See TracChangeset for help on using the changeset viewer.

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