VirtualBox

Ignore:
Timestamp:
Sep 22, 2007 12:10:41 AM (17 years ago)
Author:
vboxsync
Message:

as locking... hope it works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c

    r4869 r4981  
    134134            }
    135135
     136            rw_enter(&addrSpace->a_lock, RW_READER);
    136137            hat_unload(hatSpace, pMemSolaris->Core.pv, pMemSolaris->Core.cb, HAT_UNLOAD_UNLOCK);
     138            rw_exit(&addrSpace->a_lock, RW_READER);
    137139            as_unmap(addrSpace, pMemSolaris->Core.pv, pMemSolaris->Core.cb);
    138140            break;
     
    385387
    386388    /* Map each page into kernel space */
     389    rw_enter(&kas.a_lock, RW_READER);
    387390    caddr_t kernAddr = pv;
    388391    caddr_t pageAddr = addr;
     
    394397        kernAddr += ptob(1);
    395398    }
     399    rw_exit(&kas.a_lock, RW_READER);
    396400
    397401    pMemSolaris->Core.u.Mapping.R0Process = NIL_RTR0PROCESS; /* means kernel */
     
    482486
    483487    /* Map each page into user space */
     488    rw_enter(&useras->a_lock, RW_READER);
    484489    caddr_t pageAddr = addr;
    485490    for (iPage = 0; iPage < cPages; iPage++)
     
    489494        pageAddr += ptob(1);
    490495    }
     496    rw_exit(&useras->a_lock, RW_READER);
    491497#else
    492498    /* Map each page into user space */
     499    rw_enter(&useras->a_lock, RW_READER);
    493500    caddr_t kernAddr = pv;
    494501    caddr_t pageAddr = addr;
     
    500507        kernAddr += ptob(1);
    501508    }
     509    rw_exit(&useras->a_lock, RW_READER);
    502510#endif
    503511
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