VirtualBox

Changeset 4137 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Aug 14, 2007 2:01:08 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23616
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r4133 r4137  
    18801880    {
    18811881        int rc2;
    1882         rc = RTR0MemObjMapUser(&Mem.MapObjR3, Mem.MemObj, (void *)-1, 0,
     1882        rc = RTR0MemObjMapUser(&Mem.MapObjR3, Mem.MemObj, (RTR3PTR)-1, 0,
    18831883                               RTMEM_PROT_EXEC | RTMEM_PROT_WRITE | RTMEM_PROT_READ, RTR0ProcHandleSelf());
    18841884        if (RT_SUCCESS(rc))
     
    19851985    {
    19861986        int rc2;
    1987         rc = RTR0MemObjMapUser(&Mem.MapObjR3, Mem.MemObj, (void *)-1, 0,
     1987        rc = RTR0MemObjMapUser(&Mem.MapObjR3, Mem.MemObj, (RTR3PTR)-1, 0,
    19881988                               RTMEM_PROT_EXEC | RTMEM_PROT_WRITE | RTMEM_PROT_READ, RTR0ProcHandleSelf());
    19891989        if (RT_SUCCESS(rc))
     
    20962096    {
    20972097        int rc2;
    2098         rc = RTR0MemObjMapUser(&Mem.MapObjR3, Mem.MemObj, (void*)-1, 0,
     2098        rc = RTR0MemObjMapUser(&Mem.MapObjR3, Mem.MemObj, (RTR3PTR)-1, 0,
    20992099                               RTMEM_PROT_EXEC | RTMEM_PROT_WRITE | RTMEM_PROT_READ, RTR0ProcHandleSelf());
    21002100        if (RT_SUCCESS(rc))
     
    22722272#ifdef USE_NEW_OS_INTERFACE
    22732273            if (pSession->GipMapObjR3 == NIL_RTR0MEMOBJ)
    2274                 rc = RTR0MemObjMapUser(&pSession->GipMapObjR3, pDevExt->GipMemObj, (void*)-1, 0,
     2274                rc = RTR0MemObjMapUser(&pSession->GipMapObjR3, pDevExt->GipMemObj, (RTR3PTR)-1, 0,
    22752275                                       RTMEM_PROT_READ, RTR0ProcHandleSelf());
    22762276            if (RT_SUCCESS(rc))
     
    38683868    {
    38693869        int rc2;
    3870         rc = RTR0MemObjMapUser(&pMem->u.iprt.MapObjR3, pMem->u.iprt.MemObj, (void *)-1, 0,
     3870        rc = RTR0MemObjMapUser(&pMem->u.iprt.MapObjR3, pMem->u.iprt.MemObj, (RTR3PTR)-1, 0,
    38713871                               RTMEM_PROT_EXEC | RTMEM_PROT_WRITE | RTMEM_PROT_READ, RTR0ProcHandleSelf());
    38723872        if (RT_SUCCESS(rc))
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