Lines 323-329
Link Here
|
323 |
size_t cPages = atop(pMemFreeBSD->Core.cb); |
323 |
size_t cPages = atop(pMemFreeBSD->Core.cb); |
324 |
int rc; |
324 |
int rc; |
325 |
|
325 |
|
326 |
pMemFreeBSD->pObject = vm_object_allocate(OBJT_PHYS, cPages); |
326 |
pMemFreeBSD->pObject = vm_pager_allocate(OBJT_PHYS, NULL, |
|
|
327 |
pMemFreeBSD->Core.cb, VM_PROT_ALL, 0, curthread->td_ucred); |
327 |
|
328 |
|
328 |
/* No additional object reference for auto-deallocation upon unmapping. */ |
329 |
/* No additional object reference for auto-deallocation upon unmapping. */ |
329 |
#if __FreeBSD_version >= 1000055 |
330 |
#if __FreeBSD_version >= 1000055 |
Lines 457-463
Link Here
|
457 |
return VERR_NO_MEMORY; |
458 |
return VERR_NO_MEMORY; |
458 |
} |
459 |
} |
459 |
|
460 |
|
460 |
pMemFreeBSD->pObject = vm_object_allocate(OBJT_PHYS, atop(cb)); |
461 |
pMemFreeBSD->pObject = vm_pager_allocate(OBJT_PHYS, NULL, cb, VM_PROT_ALL, |
|
|
462 |
0, curthread->td_ucred); |
461 |
|
463 |
|
462 |
if (PhysHighest != NIL_RTHCPHYS) |
464 |
if (PhysHighest != NIL_RTHCPHYS) |
463 |
VmPhysAddrHigh = PhysHighest; |
465 |
VmPhysAddrHigh = PhysHighest; |