bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use uintptr_t to define vm_size_t/vm_offset_t/vm_address


From: Flavio Cruz
Subject: [PATCH] Use uintptr_t to define vm_size_t/vm_offset_t/vm_address
Date: Sun, 25 Dec 2022 20:48:30 -0500

---
 include/mach/mach_types.defs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/include/mach/mach_types.defs b/include/mach/mach_types.defs
index da74a3f2..5e5d0f2f 100644
--- a/include/mach/mach_types.defs
+++ b/include/mach/mach_types.defs
@@ -123,11 +123,7 @@ type ipc_space_t = mach_port_t
 #if defined(KERNEL) && defined(USER32)
 type rpc_vm_size_t = uint32_t;
 #else /* KERNEL and USER32 */
-#if defined(__x86_64__)
-type rpc_vm_size_t = uint64_t;
-#else /* __x86_64__ */
-type rpc_vm_size_t = uint32_t;
-#endif /* __x86_64__ */
+type rpc_vm_size_t = uintptr_t;
 #endif /* KERNEL_SERVER and USER32 */
 
 type rpc_vm_offset_t = rpc_vm_size_t;
-- 
2.37.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]