diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-05-08 23:52:19 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-05-08 23:52:19 +0200 |
| commit | b9827548c3aa3053116e00673bb9f66dc6959c42 (patch) | |
| tree | e1a6664ad43d46ff29f45d258f6263ef53357cf3 | |
| parent | 421779bfaef072d77d3e4534cbccb69e4db13331 (diff) | |
reorder vm_allocate_contiguous parameter like vm_allocate
| -rw-r--r-- | libddekit/mach.defs | 4 | ||||
| -rw-r--r-- | libddekit/memory.c | 2 | ||||
| -rw-r--r-- | libmachdev/mach.defs | 4 |
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. |
