Changeset 4981 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c
- Timestamp:
- Sep 22, 2007 12:10:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c
r4869 r4981 134 134 } 135 135 136 rw_enter(&addrSpace->a_lock, RW_READER); 136 137 hat_unload(hatSpace, pMemSolaris->Core.pv, pMemSolaris->Core.cb, HAT_UNLOAD_UNLOCK); 138 rw_exit(&addrSpace->a_lock, RW_READER); 137 139 as_unmap(addrSpace, pMemSolaris->Core.pv, pMemSolaris->Core.cb); 138 140 break; … … 385 387 386 388 /* Map each page into kernel space */ 389 rw_enter(&kas.a_lock, RW_READER); 387 390 caddr_t kernAddr = pv; 388 391 caddr_t pageAddr = addr; … … 394 397 kernAddr += ptob(1); 395 398 } 399 rw_exit(&kas.a_lock, RW_READER); 396 400 397 401 pMemSolaris->Core.u.Mapping.R0Process = NIL_RTR0PROCESS; /* means kernel */ … … 482 486 483 487 /* Map each page into user space */ 488 rw_enter(&useras->a_lock, RW_READER); 484 489 caddr_t pageAddr = addr; 485 490 for (iPage = 0; iPage < cPages; iPage++) … … 489 494 pageAddr += ptob(1); 490 495 } 496 rw_exit(&useras->a_lock, RW_READER); 491 497 #else 492 498 /* Map each page into user space */ 499 rw_enter(&useras->a_lock, RW_READER); 493 500 caddr_t kernAddr = pv; 494 501 caddr_t pageAddr = addr; … … 500 507 kernAddr += ptob(1); 501 508 } 509 rw_exit(&useras->a_lock, RW_READER); 502 510 #endif 503 511
Note:
See TracChangeset
for help on using the changeset viewer.