--- src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c.orig 2013-09-10 17:00:06.673663176 -0600 +++ src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c 2013-09-10 17:03:49.929649691 -0600 @@ -329,7 +329,7 @@ static int rtR0MemObjFreeBSDAllocHelper( /* No additional object reference for auto-deallocation upon unmapping. */ rc = vm_map_find(kernel_map, pMemFreeBSD->pObject, 0, - &MapAddress, pMemFreeBSD->Core.cb, VMFS_ANY_SPACE, + &MapAddress, pMemFreeBSD->Core.cb, 0, VMFS_ANY_SPACE, fExecutable ? VM_PROT_ALL : VM_PROT_RW, VM_PROT_ALL, 0); if (rc == KERN_SUCCESS) @@ -601,6 +601,7 @@ static int rtR0MemObjNativeReserveInMap( 0, /* offset */ &MapAddress, /* addr (IN/OUT) */ cb, /* length */ + 0, /* max_addr */ pvFixed == (void *)-1 ? VMFS_ANY_SPACE : VMFS_NO_SPACE, /* find_space */ VM_PROT_NONE, /* protection */ @@ -678,6 +679,7 @@ DECLHIDDEN(int) rtR0MemObjNativeMapKerne offSub, /* Start offset in the object */ &Addr, /* Start address IN/OUT */ cbSub, /* Size of the mapping */ + 0, /* Maximum address */ VMFS_ANY_SPACE, /* Whether a suitable address should be searched for first */ ProtectionFlags, /* protection flags */ VM_PROT_ALL, /* Maximum protection flags */ @@ -754,6 +756,7 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser( 0, /* Start offset in the object */ &AddrR3, /* Start address IN/OUT */ pMemToMap->cb, /* Size of the mapping */ + 0, /* Maximum address */ R3PtrFixed == (RTR3PTR)-1 ? VMFS_ANY_SPACE : VMFS_NO_SPACE, /* Whether a suitable address should be searched for first */ ProtectionFlags, /* protection flags */