Changeset 78120 in vbox for trunk/src/VBox/Runtime/r0drv/freebsd
- Timestamp:
- Apr 12, 2019 1:20:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
r77131 r78120 651 651 if (uAlignment > PAGE_SIZE) 652 652 return VERR_NOT_SUPPORTED; 653 Assert(!offSub || cbSub); 653 654 654 655 int rc; … … 711 712 712 713 DECLHIDDEN(int) rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment, 713 unsigned fProt, RTR0PROCESS R0Process )714 unsigned fProt, RTR0PROCESS R0Process, size_t offSub, size_t cbSub) 714 715 { 715 716 /* … … 719 720 if (uAlignment > PAGE_SIZE) 720 721 return VERR_NOT_SUPPORTED; 722 Assert(!offSub || cbSub); 721 723 722 724 int rc; … … 748 750 AddrR3 = (vm_offset_t)R3PtrFixed; 749 751 752 if (cbSub == 0) 753 cbSub = pMemToMap->cb - offSub; 754 750 755 /* Insert the pObject in the map. */ 751 756 vm_object_reference(pMemToMapFreeBSD->pObject); 752 757 rc = vm_map_find(pProcMap, /* Map to insert the object in */ 753 758 pMemToMapFreeBSD->pObject, /* Object to map */ 754 0,/* Start offset in the object */759 offSub, /* Start offset in the object */ 755 760 &AddrR3, /* Start address IN/OUT */ 756 pMemToMap->cb,/* Size of the mapping */761 cbSub, /* Size of the mapping */ 757 762 #if __FreeBSD_version >= 1000055 758 763 0, /* Upper bound of the mapping */
Note:
See TracChangeset
for help on using the changeset viewer.