summaryrefslogtreecommitdiff
path: root/vm/vm_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_user.c')
-rw-r--r--vm/vm_user.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c
index 4d5728c8..b13ba8dc 100644
--- a/vm/vm_user.c
+++ b/vm/vm_user.c
@@ -659,3 +659,17 @@ kern_return_t vm_allocate_contiguous(
return KERN_SUCCESS;
}
+
+kern_return_t experimental_vm_allocate_contiguous(host_priv, map, result_vaddr, result_paddr, size)
+ host_t host_priv;
+ vm_map_t map;
+ vm_address_t *result_vaddr;
+ vm_address_t *result_paddr;
+ vm_size_t size;
+{
+ rpc_phys_addr_t paddr;
+ kern_return_t ret;
+ ret = vm_allocate_contiguous(host_priv, map, result_vaddr, &paddr, size, 0, ~0ULL, 0);
+ *result_paddr = paddr;
+ return ret;
+}