diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-03-13 01:41:57 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-03-13 20:26:26 +0100 |
commit | 5447f965f1e109f7ac9aeb91c0e3906969a4adb8 (patch) | |
tree | b3571bc9da00758100f7bbe8d1a886948933173c /kern/thread.c | |
parent | bba59e0f7a3cf1a008325b7919e9eb8a170c7c0a (diff) | |
download | gnumach-5447f965f1e109f7ac9aeb91c0e3906969a4adb8.tar.gz gnumach-5447f965f1e109f7ac9aeb91c0e3906969a4adb8.tar.bz2 gnumach-5447f965f1e109f7ac9aeb91c0e3906969a4adb8.zip |
Use c_string to define host_get_kernel_version and host_get_kernel_boot_info.
The existing definitions for kernel_version_t and kernel_boot_info_t use
(MACH_MSG_TYPE_STRING, length*8) which result in message types that have
a single element of 512 or 4096 bytes (set as msgt_size). This results
in MiG generating mach_msg_type_long_t. Using c_string has the benefit
of moving this size to be defined as msgt_number which doesn't overflow.
This will allow us to simplify the 64 bit RPC ABI since all msgt_size can
be defined with just 8 bits (as it should be expected).
The resulting implementation is the same but we still need to define new
RPCs since server and user expect different mach_msg_type_t.
Message-Id: <ZA63pS8j9J6NwuXY@jupiter.tail36e24.ts.net>
Diffstat (limited to 'kern/thread.c')
0 files changed, 0 insertions, 0 deletions