os/packet_stream: avoid global env

Pass an explicit Region_map reference to stream constructors.

Issue #1987
Issue #2034
This commit is contained in:
Emery Hemingway
2016-07-22 10:05:52 +02:00
committed by Norman Feske
parent ce3170f3f7
commit 9bae4823a0
18 changed files with 61 additions and 44 deletions

View File

@ -37,10 +37,11 @@ class File_system::Session_client : public Genode::Rpc_client<Session>
* transmission buffer
*/
Session_client(Session_capability session,
Genode::Range_allocator &tx_buffer_alloc)
Genode::Range_allocator &tx_buffer_alloc,
Genode::Region_map &rm)
:
Rpc_client<Session>(session),
_tx(call<Rpc_tx_cap>(), &tx_buffer_alloc)
_tx(call<Rpc_tx_cap>(), rm, tx_buffer_alloc)
{ }