diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-01-31 01:08:09 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-31 22:01:16 +0100 |
commit | 804ceef34074c661ce6e44cf4a44d88a501a633e (patch) | |
tree | a00a3dfa270355858f187252faf7be6759f1bc30 /i386/include | |
parent | ceeb4675f660d0648a7a8bf3e19c0840a6dced2f (diff) | |
download | gnumach-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 'i386/include')
-rw-r--r-- | i386/include/mach/i386/vm_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/i386/include/mach/i386/vm_types.h b/i386/include/mach/i386/vm_types.h index 663f920a..bd07ef26 100644 --- a/i386/include/mach/i386/vm_types.h +++ b/i386/include/mach/i386/vm_types.h @@ -158,6 +158,9 @@ typedef long_integer_t rpc_long_integer_t; #define convert_long_natural_to_user convert_vm_to_user #define convert_long_natural_from_user convert_vm_from_user +typedef rpc_vm_size_t * rpc_vm_size_array_t; +typedef rpc_vm_offset_t * rpc_vm_offset_array_t; + #endif /* __ASSEMBLER__ */ /* |