aboutsummaryrefslogtreecommitdiff
path: root/vm/memory_object_proxy.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-31 01:08:09 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-31 22:01:16 +0100
commit804ceef34074c661ce6e44cf4a44d88a501a633e (patch)
treea00a3dfa270355858f187252faf7be6759f1bc30 /vm/memory_object_proxy.c
parentceeb4675f660d0648a7a8bf3e19c0840a6dced2f (diff)
downloadgnumach-804ceef34074c661ce6e44cf4a44d88a501a633e.tar.gz
gnumach-804ceef34074c661ce6e44cf4a44d88a501a633e.tar.bz2
gnumach-804ceef34074c661ce6e44cf4a44d88a501a633e.zip
Define rpc_vm_size_array_t and rpc_vm_offset_array_t
When generating stubs, Mig will will take the vm_size_array_t and define the input request struct using rpc_vm_size_t since the size is variable. This will turn cause a mismatch between types (vm_size_t* vs rpc_vm_size_t*). We could also ask Mig to produce a prototype by using rpc_vm_size_t*, however we would need to change the implementation of the RPC to use rpc_* types anyway since we want to avoid another allocation of the array. Message-Id: <Y9iwScHpmsgY3V0N@jupiter.tail36e24.ts.net>
Diffstat (limited to 'vm/memory_object_proxy.c')
-rw-r--r--vm/memory_object_proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/memory_object_proxy.c b/vm/memory_object_proxy.c
index 46a57932..0f1e75e5 100644
--- a/vm/memory_object_proxy.c
+++ b/vm/memory_object_proxy.c
@@ -133,9 +133,9 @@ memory_object_proxy_notify (mach_msg_header_t *msg)
kern_return_t
memory_object_create_proxy (ipc_space_t space, vm_prot_t max_protection,
ipc_port_t *object, natural_t object_count,
- vm_offset_t *offset, natural_t offset_count,
- vm_offset_t *start, natural_t start_count,
- vm_size_t *len, natural_t len_count,
+ rpc_vm_offset_t *offset, natural_t offset_count,
+ rpc_vm_offset_t *start, natural_t start_count,
+ rpc_vm_size_t *len, natural_t len_count,
ipc_port_t *port)
{
memory_object_proxy_t proxy;