Changeset 26771 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Feb 24, 2010 9:36:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
r26430 r26771 740 740 /* fall thru*/ 741 741 case RTR0MEMOBJTYPE_PAGE: 742 { 743 vm_offset_t pb = (vm_offset_t)pMemFreeBSD->Core.pv + (iPage << PAGE_SHIFT); 744 return vtophys(pb); 745 } 742 746 case RTR0MEMOBJTYPE_MAPPING: 743 747 { 744 uint8_t *pb = (uint8_t *)pMemFreeBSD->Core.pv + (iPage << PAGE_SHIFT); 745 return vtophys(pb); 748 vm_offset_t pb = (vm_offset_t)pMemFreeBSD->Core.pv + (iPage << PAGE_SHIFT); 749 750 if (pMemFreeBSD->Core.u.Mapping.R0Process != NIL_RTR0PROCESS) 751 { 752 struct proc *pProc = (struct proc *)pMemFreeBSD->Core.u.Mapping.R0Process; 753 struct vm_map *pProcMap = &pProc->p_vmspace->vm_map; 754 pmap_t pPhysicalMap = pProcMap->pmap; 755 756 return pmap_extract(pPhysicalMap, pb); 757 } 758 else 759 return vtophys(pb); 746 760 } 747 761
Note:
See TracChangeset
for help on using the changeset viewer.