mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-01 19:46:45 +00:00
Do not pass client tid to server on IPC call
Thanks to the SCM-rights-based reply capability, the server does not need to know about the client's TID anymore.
This commit is contained in:
parent
508d2050a6
commit
b01a1a92cc
@ -109,11 +109,9 @@ void Ipc_client::_prepare_next_call()
|
|||||||
{
|
{
|
||||||
/* prepare next request in buffer */
|
/* prepare next request in buffer */
|
||||||
long const local_name = Ipc_ostream::_dst.local_name();
|
long const local_name = Ipc_ostream::_dst.local_name();
|
||||||
long const tid = Native_capability::dst().tid;
|
|
||||||
|
|
||||||
_write_offset = 0;
|
_write_offset = 0;
|
||||||
_write_to_buf(local_name);
|
_write_to_buf(local_name);
|
||||||
_write_to_buf(tid);
|
|
||||||
|
|
||||||
/* prepare response buffer */
|
/* prepare response buffer */
|
||||||
_read_offset = sizeof(long);
|
_read_offset = sizeof(long);
|
||||||
@ -148,14 +146,6 @@ void Ipc_server::_prepare_next_reply_wait()
|
|||||||
/* skip server-local name */
|
/* skip server-local name */
|
||||||
_read_offset = sizeof(long);
|
_read_offset = sizeof(long);
|
||||||
|
|
||||||
/* read client thread id from request buffer */
|
|
||||||
long tid = 0;
|
|
||||||
if (_reply_needed) {
|
|
||||||
/* XXX to be removed */
|
|
||||||
long tid;
|
|
||||||
if (_reply_needed)
|
|
||||||
_read_from_buf(tid);
|
|
||||||
|
|
||||||
/* prepare next reply */
|
/* prepare next reply */
|
||||||
_write_offset = 0;
|
_write_offset = 0;
|
||||||
long local_name = Ipc_ostream::_dst.local_name();
|
long local_name = Ipc_ostream::_dst.local_name();
|
||||||
|
Loading…
Reference in New Issue
Block a user