lx_kit: remove execution of static ctors

In case where the ported driver or protocol stack is executed from
an already managed environment, e.g. the libc, the execution
of the static constructors will be performed at the appropriate
time.

Issue #4455.
This commit is contained in:
Josef Söntgen 2022-03-25 13:58:41 +01:00 committed by Christian Helmuth
parent aa7303f19f
commit ffea0bf857
3 changed files with 2 additions and 1 deletions

View File

@ -58,5 +58,4 @@ void Lx_kit::Pci_fixup_calls::execute(struct pci_dev *pci_dev)
void Lx_kit::initialize(Genode::Env & env)
{
Lx_kit::env(&env);
env.exec_static_constructors();
}

View File

@ -109,6 +109,7 @@ struct Framebuffer::Driver
Driver(Env &env) : env(env)
{
Lx_kit::initialize(env);
env.exec_static_constructors();
config.sigh(config_handler);
}

View File

@ -73,6 +73,7 @@ struct Main : private Entrypoint::Io_progress_handler
}
Lx_kit::initialize(env);
env.exec_static_constructors();
genode_usb_init(genode_env_ptr(env),
genode_allocator_ptr(sliced_heap),