diff options
Diffstat (limited to 'libddekit')
-rw-r--r-- | libddekit/mach.defs | 2 | ||||
-rw-r--r-- | libddekit/memory.c | 4 |
2 files changed, 3 insertions, 3 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 |