Replace 'Native_capability::copy_to' by accessor

The 'copy_to' function turned out to be not flexible enough to
accommodate the Noux fork mechanism. This patch removes the function,
adds an accessor for the capability destination and a compound type
'Native_capability::Raw' to be used wherever plain capability
information must be communicated.
This commit is contained in:
Norman Feske
2012-03-26 14:32:16 +02:00
parent 22084dbfa5
commit d6e30c19de
18 changed files with 119 additions and 87 deletions

View File

@@ -128,9 +128,9 @@ Ipc_istream::~Ipc_istream() { }
void Ipc_client::_call()
{
unsigned request_size = _write_offset;
copy_msgbuf_to_utcb(_snd_msg, request_size, _dst.local_name());
copy_msgbuf_to_utcb(_snd_msg, request_size, Ipc_ostream::_dst.local_name());
unsigned reply_size = Kernel::ipc_request(_dst.dst(), request_size);
unsigned reply_size = Kernel::ipc_request(Ipc_ostream::_dst.dst(), request_size);
copy_utcb_to_msgbuf(reply_size, _rcv_msg);
@@ -181,7 +181,7 @@ void Ipc_server::_reply_wait()
unsigned reply_size = 0;
if (_reply_needed) {
reply_size = _write_offset;
copy_msgbuf_to_utcb(_snd_msg, reply_size, _dst.local_name());
copy_msgbuf_to_utcb(_snd_msg, reply_size, Ipc_ostream::_dst.local_name());
}
unsigned request_size = Kernel::ipc_serve(reply_size);