From fbdfbc24766b0f1197d8e2f89ff598a08870a33d Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 1 Mar 2017 16:35:09 +0100 Subject: [PATCH] bomb: remove redundant Rpc_entrypoint in Child Fixes #2302 --- repos/os/src/test/bomb/main.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/repos/os/src/test/bomb/main.cc b/repos/os/src/test/bomb/main.cc index 6dd29d8b33..79b820f76f 100644 --- a/repos/os/src/test/bomb/main.cc +++ b/repos/os/src/test/bomb/main.cc @@ -34,17 +34,11 @@ class Bomb_child : public Child_policy Name const _label; size_t const _ram_quota; - /* - * Entry point used for serving the parent interface - */ - enum { STACK_SIZE = 2048 * sizeof(addr_t) }; - Rpc_entrypoint _ep { &_env.pd(), STACK_SIZE, "bomb_ep_child", false }; - Registry > &_parent_services; - Child_policy_dynamic_rom_file _config_policy { _env.rm(), "config", _ep, &_env.ram() }; + Child_policy_dynamic_rom_file _config_policy { _env.rm(), "config", _env.ep().rpc_ep(), &_env.ram() }; - Child _child { _env.rm(), _ep, *this }; + Child _child { _env.rm(), _env.ep().rpc_ep(), *this }; public: @@ -61,7 +55,6 @@ class Bomb_child : public Child_policy { String<64> config(""); _config_policy.load(config.string(), config.length()); - _ep.activate(); } ~Bomb_child() { log(__PRETTY_FUNCTION__); }