aboutsummaryrefslogtreecommitdiff
path: root/ipc/ipc_kmsg.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-01-11 23:22:53 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-13 00:57:55 +0100
commit92fad38a043b75ed6b435b3efa574ede91dbe9ee (patch)
treec9d5294f70db01fb06912b7e24ebfca985f528ea /ipc/ipc_kmsg.c
parent963b1794d7117064cee8ab5638b329db51dad854 (diff)
downloadgnumach-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 'ipc/ipc_kmsg.c')
-rw-r--r--ipc/ipc_kmsg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c
index 73041703..62e138c7 100644
--- a/ipc/ipc_kmsg.c
+++ b/ipc/ipc_kmsg.c
@@ -1727,7 +1727,7 @@ ipc_kmsg_copyout_header(
case MACH_MSGH_BITS(MACH_MSG_TYPE_PORT_SEND, 0): {
mach_port_name_t dest_name;
ipc_port_t nsrequest;
- unsigned long payload;
+ rpc_uintptr_t payload;
/* receiving an asynchronous message */
@@ -1780,7 +1780,7 @@ ipc_kmsg_copyout_header(
ipc_port_t reply = (ipc_port_t) msg->msgh_local_port;
mach_port_name_t dest_name, reply_name;
ipc_port_t nsrequest;
- unsigned long payload;
+ rpc_uintptr_t payload;
/* receiving a request message */
@@ -1882,7 +1882,7 @@ ipc_kmsg_copyout_header(
case MACH_MSGH_BITS(MACH_MSG_TYPE_PORT_SEND_ONCE, 0): {
mach_port_name_t dest_name;
- unsigned long payload;
+ rpc_uintptr_t payload;
/* receiving a reply message */
@@ -1936,7 +1936,7 @@ ipc_kmsg_copyout_header(
mach_msg_type_name_t reply_type = MACH_MSGH_BITS_LOCAL(mbits);
ipc_port_t reply = (ipc_port_t) msg->msgh_local_port;
mach_port_name_t dest_name, reply_name;
- unsigned long payload;
+ rpc_uintptr_t payload;
if (IP_VALID(reply)) {
ipc_port_t notify_port;