Changeset 4136 in vbox for trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
- Timestamp:
- Aug 14, 2007 1:59:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
r4135 r4136 143 143 case RTR0MEMOBJTYPE_LOW: 144 144 case RTR0MEMOBJTYPE_PHYS: 145 case RTR0MEMOBJTYPE_PHYS_NC: 145 146 default: 146 147 AssertMsgFailed(("enmType=%d\n", pMemFreeBSD->Core.enmType)); … … 307 308 308 309 310 int rtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest) 311 { 312 /** @todo rtR0MemObjNativeAllocPhys / freebsd */ 313 return rtR0MemObjNativeAllocPhys(ppMem, cb, PhysHighest); 314 } 315 316 309 317 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb) 310 318 { … … 453 461 454 462 455 int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process)456 { 457 return rtR0MemObjNativeReserveInMap(ppMem, pvFixed, cb, uAlignment, R0Process,463 int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process) 464 { 465 return rtR0MemObjNativeReserveInMap(ppMem, (void *)R3PtrFixed, cb, uAlignment, R0Process, 458 466 &((struct proc *)R0Process)->p_vmspace->vm_map); 459 467 } … … 483 491 break; 484 492 493 case RTR0MEMOBJTYPE_PHYS_NC: 485 494 case RTR0MEMOBJTYPE_PHYS: 486 495 pvR0 = pMemToMapOs2->Core.pv; … … 533 542 534 543 535 int rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process)544 int rtR0MemObjNativeMapUser(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, RTR3PTR R3PtrFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process) 536 545 { 537 546 AssertMsgReturn(R0Process == RTR0ProcHandleSelf(), ("%p != %p\n", R0Process, RTR0ProcHandleSelf()), VERR_NOT_SUPPORTED); 538 AssertMsgReturn( pvFixed == (void *)-1, ("%p\n", pvFixed), VERR_NOT_SUPPORTED);547 AssertMsgReturn(R3PtrFixed == (RTR3PTR)-1, ("%p\n", R3PtrFixed), VERR_NOT_SUPPORTED); 539 548 540 549 #if 0 … … 578 587 break; 579 588 589 case RTR0MEMOBJTYPE_PHYS_NC: 580 590 case RTR0MEMOBJTYPE_RES_VIRT: 581 591 case RTR0MEMOBJTYPE_MAPPING: … … 647 657 return pMemFreeBSD->Core.u.Phys.PhysBase + (iPage << PAGE_SHIFT); 648 658 659 case RTR0MEMOBJTYPE_PHYS_NC: 649 660 case RTR0MEMOBJTYPE_RES_VIRT: 650 661 case RTR0MEMOBJTYPE_MAPPING:
Note:
See TracChangeset
for help on using the changeset viewer.