diff options
author | Luca Dariz <luca@orpolo.org> | 2022-04-03 16:59:54 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-27 22:15:07 +0200 |
commit | e2f1d502a5a5ab6a8885cc518ed254c79f7ab27c (patch) | |
tree | 9349c4ad183944b5430c0134f3f611b9112c7f02 /kern | |
parent | 499f154bf12fe15c6aa1740100e4545a71490be1 (diff) | |
download | gnumach-e2f1d502a5a5ab6a8885cc518ed254c79f7ab27c.tar.gz gnumach-e2f1d502a5a5ab6a8885cc518ed254c79f7ab27c.tar.bz2 gnumach-e2f1d502a5a5ab6a8885cc518ed254c79f7ab27c.zip |
add port name types
* include/mach/mach_port.defs
- use C type mach_port_name_array_t
* include/mach/port.h:
- add new types mach_port_name_t and mach_port_name_array_t
- refine mach_port_t type for user and kernel space
- use port names in mach_port_status to allow compilation of 64-bit
- use port name to have uniform sizes and remove the
old_mach_port_status_t as it's unused
* include/mach/std_types.defs
- use C type mach_port_name_array_t
* kern/thread.{h,c}
- fix prototype to use port names. So far it seems the only rpc to
cause a conflict between the mig-generated header and the regular
header, so compilation fails.
Signed-off-by: Luca Dariz <luca@orpolo.org>
Message-Id: <20220403145955.120742-2-luca@orpolo.org>
Diffstat (limited to 'kern')
-rw-r--r-- | kern/thread.c | 4 | ||||
-rw-r--r-- | kern/thread.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kern/thread.c b/kern/thread.c index 0e3cc2c9..82863b38 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -861,8 +861,8 @@ kern_return_t thread_terminate( kern_return_t thread_terminate_release( thread_t thread, task_t task, - mach_port_t thread_name, - mach_port_t reply_port, + mach_port_name_t thread_name, + mach_port_name_t reply_port, vm_offset_t address, vm_size_t size) { diff --git a/kern/thread.h b/kern/thread.h index f0ed71a8..ddf4e1da 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -280,8 +280,8 @@ extern kern_return_t thread_terminate( extern kern_return_t thread_terminate_release( thread_t thread, task_t task, - mach_port_t thread_name, - mach_port_t reply_port, + mach_port_name_t thread_name, + mach_port_name_t reply_port, vm_offset_t address, vm_size_t size); extern kern_return_t thread_suspend( |