summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libddekit/mach.defs4
-rw-r--r--libddekit/memory.c2
-rw-r--r--libmachdev/mach.defs4
3 files changed, 5 insertions, 5 deletions
diff --git a/libddekit/mach.defs b/libddekit/mach.defs
index 1a53dfa1..5e4c45f7 100644
--- a/libddekit/mach.defs
+++ b/libddekit/mach.defs
@@ -770,9 +770,9 @@ skip; /* old host_fpa_counters_reset */
routine vm_allocate_contiguous(
host_priv : host_priv_t;
target_task : vm_task_t;
- size : vm_size_t;
out vaddr : vm_address_t;
- out paddr : vm_address_t);
+ out paddr : vm_address_t;
+ size : vm_size_t);
/*
* There is no more room in this interface for additional calls.
diff --git a/libddekit/memory.c b/libddekit/memory.c
index 06d20e1c..b4723b96 100644
--- a/libddekit/memory.c
+++ b/libddekit/memory.c
@@ -219,7 +219,7 @@ void *ddekit_large_malloc(int size)
/* Allocate memory. */
err = vm_allocate_contiguous (priv_host, mach_task_self (),
- size, &vstart, &pstart);
+ &vstart, &pstart, size);
if (err)
{
error (0, err, "vm_allocate_contiguous");
diff --git a/libmachdev/mach.defs b/libmachdev/mach.defs
index 1a53dfa1..5e4c45f7 100644
--- a/libmachdev/mach.defs
+++ b/libmachdev/mach.defs
@@ -770,9 +770,9 @@ skip; /* old host_fpa_counters_reset */
routine vm_allocate_contiguous(
host_priv : host_priv_t;
target_task : vm_task_t;
- size : vm_size_t;
out vaddr : vm_address_t;
- out paddr : vm_address_t);
+ out paddr : vm_address_t;
+ size : vm_size_t);
/*
* There is no more room in this interface for additional calls.