mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
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:
parent
aa7303f19f
commit
ffea0bf857
@ -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();
|
||||
}
|
||||
|
@ -109,6 +109,7 @@ struct Framebuffer::Driver
|
||||
Driver(Env &env) : env(env)
|
||||
{
|
||||
Lx_kit::initialize(env);
|
||||
env.exec_static_constructors();
|
||||
|
||||
config.sigh(config_handler);
|
||||
}
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user