diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-01-11 23:22:53 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-13 00:57:55 +0100 |
commit | 92fad38a043b75ed6b435b3efa574ede91dbe9ee (patch) | |
tree | c9d5294f70db01fb06912b7e24ebfca985f528ea /i386/include | |
parent | 963b1794d7117064cee8ab5638b329db51dad854 (diff) | |
download | gnumach-92fad38a043b75ed6b435b3efa574ede91dbe9ee.tar.gz gnumach-92fad38a043b75ed6b435b3efa574ede91dbe9ee.tar.bz2 gnumach-92fad38a043b75ed6b435b3efa574ede91dbe9ee.zip |
Use rpc_uintptr_t for protected payloads.
Not only is uintptr_t more accurate for what protected payloads are but
we also provide compatibility for 64 + 32 bits. Also the use of
natural_t in the RPC definition is wrong since it is always 32 bits.
Message-Id: <Y7+LHVbmYxO/cSKs@jupiter.tail36e24.ts.net>
Diffstat (limited to 'i386/include')
-rw-r--r-- | i386/include/mach/i386/vm_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/i386/include/mach/i386/vm_types.h b/i386/include/mach/i386/vm_types.h index 4522f48b..663f920a 100644 --- a/i386/include/mach/i386/vm_types.h +++ b/i386/include/mach/i386/vm_types.h @@ -110,6 +110,7 @@ typedef vm_size_t * vm_size_array_t; * functions. */ #if defined(MACH_KERNEL) && defined(USER32) +typedef uint32_t rpc_uintptr_t; typedef uint32_t rpc_vm_address_t; typedef uint32_t rpc_vm_offset_t; typedef uint32_t rpc_vm_size_t; @@ -139,6 +140,7 @@ static inline int32_t convert_long_integer_to_user(int64_t i) typedef uint32_t rpc_long_natural_t; typedef int32_t rpc_long_integer_t; #else /* MACH_KERNEL */ +typedef uintptr_t rpc_uintptr_t; typedef vm_offset_t rpc_vm_address_t; typedef vm_offset_t rpc_vm_offset_t; typedef vm_size_t rpc_vm_size_t; |