From 421779bfaef072d77d3e4534cbccb69e4db13331 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 8 May 2011 23:43:45 +0200 Subject: Rename vm_dma_buff_alloc RPC into vm_allocate_contiguous --- libddekit/mach.defs | 2 +- libddekit/memory.c | 4 ++-- libmachdev/mach.defs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libddekit/mach.defs b/libddekit/mach.defs index dc616e65..1a53dfa1 100644 --- a/libddekit/mach.defs +++ b/libddekit/mach.defs @@ -767,7 +767,7 @@ skip; /* old host_fpa_counters_reset */ * We are going to get a contiguous physical memory * and its physical address in addition to the virtual address. */ -routine vm_dma_buff_alloc( +routine vm_allocate_contiguous( host_priv : host_priv_t; target_task : vm_task_t; size : vm_size_t; diff --git a/libddekit/memory.c b/libddekit/memory.c index 79fe0ad3..06d20e1c 100644 --- a/libddekit/memory.c +++ b/libddekit/memory.c @@ -218,11 +218,11 @@ void *ddekit_large_malloc(int size) extern mach_port_t priv_host; /* Allocate memory. */ - err = vm_dma_buff_alloc (priv_host, mach_task_self (), + err = vm_allocate_contiguous (priv_host, mach_task_self (), size, &vstart, &pstart); if (err) { - error (0, err, "vm_dma_buff_alloc"); + error (0, err, "vm_allocate_contiguous"); vstart = 0; } else diff --git a/libmachdev/mach.defs b/libmachdev/mach.defs index dc616e65..1a53dfa1 100644 --- a/libmachdev/mach.defs +++ b/libmachdev/mach.defs @@ -767,7 +767,7 @@ skip; /* old host_fpa_counters_reset */ * We are going to get a contiguous physical memory * and its physical address in addition to the virtual address. */ -routine vm_dma_buff_alloc( +routine vm_allocate_contiguous( host_priv : host_priv_t; target_task : vm_task_t; size : vm_size_t; -- cgit v1.2.3