Changeset 23610 in vbox for trunk/src/VBox/Runtime/r0drv/darwin
- Timestamp:
- Oct 7, 2009 9:22:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r22069 r23610 655 655 * @return IPRT status code. 656 656 * 657 * @param ppMem Where to store the memory object pointer. 658 * @param pv First page. 659 * @param cb Number of bytes. 660 * @param Task The task \a pv and \a cb refers to. 657 * @param ppMem Where to store the memory object pointer. 658 * @param pv First page. 659 * @param cb Number of bytes. 660 * @param fAccess The desired access, a combination of RTMEM_PROT_READ 661 * and RTMEM_PROT_WRITE. 662 * @param Task The task \a pv and \a cb refers to. 661 663 */ 662 static int rtR0MemObjNativeLock(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, task_t Task) 663 { 664 static int rtR0MemObjNativeLock(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, task_t Task) 665 { 666 NOREF(fAccess); 664 667 #ifdef USE_VM_MAP_WIRE 665 668 vm_map_t Map = get_task_map(Task); … … 729 732 730 733 731 int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, RTR0PROCESS R0Process)732 { 733 return rtR0MemObjNativeLock(ppMem, (void *)R3Ptr, cb, (task_t)R0Process);734 } 735 736 737 int rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb )738 { 739 return rtR0MemObjNativeLock(ppMem, pv, cb, kernel_task);734 int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process) 735 { 736 return rtR0MemObjNativeLock(ppMem, (void *)R3Ptr, cb, fAccess, (task_t)R0Process); 737 } 738 739 740 int rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess) 741 { 742 return rtR0MemObjNativeLock(ppMem, pv, cb, fAccess, kernel_task); 740 743 } 741 744
Note:
See TracChangeset
for help on using the changeset viewer.