Changeset 385 in vbox for trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
- Timestamp:
- Jan 27, 2007 8:05:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r377 r385 32 32 #include <iprt/param.h> 33 33 #include <iprt/string.h> 34 #include <iprt/process.h> 34 35 #include "internal/memobj.h" 35 36 … … 94 95 { 95 96 #ifdef USE_VM_MAP_WIRE 96 vm_map_t Map = pMemDarwin->Core.u.Lock. Process != NIL_RTPROCESS97 ? get_task_map((task_t)pMemDarwin->Core.u.Lock. Process)97 vm_map_t Map = pMemDarwin->Core.u.Lock.R0Process != NIL_RTR0PROCESS 98 ? get_task_map((task_t)pMemDarwin->Core.u.Lock.R0Process) 98 99 : kernel_map; 99 100 kern_return_t kr = vm_map_unwire(Map, … … 377 378 if (pMemDarwin) 378 379 { 379 pMemDarwin->Core.u.Lock. Process = (RTPROCESS)Task;380 pMemDarwin->Core.u.Lock.R0Process = (RTR0PROCESS)Task; 380 381 *ppMem = &pMemDarwin->Core; 381 382 return VINF_SUCCESS; … … 404 405 if (pMemDarwin) 405 406 { 406 pMemDarwin->Core.u.Lock. Process = (RTPROCESS)Task;407 pMemDarwin->Core.u.Lock.R0Process = (RTR0PROCESS)Task; 407 408 pMemDarwin->pMemDesc = pMemDesc; 408 409 *ppMem = &pMemDarwin->Core; … … 470 471 if (pMemDarwin) 471 472 { 472 pMemDarwin->Core.u.Mapping. Process = NIL_RTPROCESS;473 pMemDarwin->Core.u.Mapping.R0Process = NIL_RTR0PROCESS; 473 474 pMemDarwin->pMemMap = pMemMap; 474 475 *ppMem = &pMemDarwin->Core; … … 514 515 if (pMemDarwin) 515 516 { 516 pMemDarwin->Core.u.Mapping. Process = /*RTProcSelf()*/(RTPROCESS)current_task();517 pMemDarwin->Core.u.Mapping.R0Process = RTR0ProcHandleSelf(); 517 518 pMemDarwin->pMemMap = pMemMap; 518 519 *ppMem = &pMemDarwin->Core; … … 546 547 { 547 548 ppnum_t PgNo; 548 if (pMemDarwin->Core.u.Lock. Process == NIL_RTPROCESS)549 if (pMemDarwin->Core.u.Lock.R0Process == NIL_RTR0PROCESS) 549 550 PgNo = pmap_find_phys(kernel_pmap, (uintptr_t)pMemDarwin->Core.pv + iPage * PAGE_SIZE); 550 551 else … … 575 576 AssertReturn(s_offPmap >= 0, NIL_RTHCPHYS); 576 577 } 577 pmap_t Pmap = *(pmap_t *)((uintptr_t)get_task_map((task_t)pMemDarwin->Core.u.Lock. Process) + s_offPmap);578 pmap_t Pmap = *(pmap_t *)((uintptr_t)get_task_map((task_t)pMemDarwin->Core.u.Lock.R0Process) + s_offPmap); 578 579 PgNo = pmap_find_phys(Pmap, (uintptr_t)pMemDarwin->Core.pv + iPage * PAGE_SIZE); 579 580 }
Note:
See TracChangeset
for help on using the changeset viewer.