Changeset 8327 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c
- Timestamp:
- Apr 23, 2008 12:49:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c
r8326 r8327 280 280 /* Lock down user pages */ 281 281 int rc = as_pagelock(useras, &ppl, (caddr_t)R3Ptr, cb, S_WRITE); 282 if (rc != 0) 283 { 284 cmn_err(CE_NOTE,"rtR0MemObjNativeLockUser: as_pagelock failed rc=%d\n", rc); 285 return VERR_LOCK_FAILED; 286 } 287 288 if (!ppl) 289 { 282 if (!rc) 283 { 284 if (ppl) 285 { 286 pMemSolaris->Core.u.Lock.R0Process = (RTR0PROCESS)userproc; 287 pMemSolaris->ppShadowPages = ppl; 288 *ppMem = &pMemSolaris->Core; 289 return VINF_SUCCESS; 290 } 291 290 292 as_pageunlock(useras, ppl, (caddr_t)R3Ptr, cb, S_WRITE); 291 293 cmn_err(CE_NOTE, "rtR0MemObjNativeLockUser: as_pagelock failed to get shadow pages\n"); 292 return VERR_LOCK_FAILED; 293 } 294 295 pMemSolaris->Core.u.Lock.R0Process = (RTR0PROCESS)userproc; 296 pMemSolaris->ppShadowPages = ppl; 297 *ppMem = &pMemSolaris->Core; 298 return VINF_SUCCESS; 294 } 295 else 296 cmn_err(CE_NOTE,"rtR0MemObjNativeLockUser: as_pagelock failed rc=%d\n", rc); 297 rtR0MemObjDelete(pMemSolaris); 298 return VERR_LOCK_FAILED; 299 299 } 300 300
Note:
See TracChangeset
for help on using the changeset viewer.