VirtualBox

Ignore:
Timestamp:
Aug 14, 2007 1:59:36 AM (17 years ago)
Author:
vboxsync
Message:

Added RTR0MemObjAllocPhysNC. Changed the two APIs taking ring-3 addresses to use RTR3PTR.

File:
1 edited

Legend:

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

    r4135 r4136  
    105105                IOFreePhysical(pMemDarwin->Core.u.Phys.PhysBase, pMemDarwin->Core.cb);*/
    106106            Assert(!pMemDarwin->Core.u.Phys.fAllocated);
     107            break;
     108
     109        case RTR0MEMOBJTYPE_PHYS_NC:
     110            AssertMsgFailed(("RTR0MEMOBJTYPE_PHYS_NC\n"));
     111            return VERR_INTERNAL_ERROR;
    107112            break;
    108113
     
    356361
    357362
     363int rtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest)
     364{
     365    /** @todo rtR0MemObjNativeAllocPhys / darwin. */
     366    return rtR0MemObjNativeAllocPhys(ppMem, cb, PhysHighest);
     367}
     368
     369
    358370int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb)
    359371{
     
    490502
    491503
    492 int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
     504int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)
    493505{
    494506    return VERR_NOT_IMPLEMENTED;
     
    539551
    540552
    541 int rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process)
     553int rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process)
    542554{
    543555    /*
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