base: pass 'Platform &' to 'bootstrap_component'

This eliminates the need of component.cc to pull the platform resources
out of thin air (calling 'env_deprecated()').

Issue #4784
This commit is contained in:
Norman Feske
2023-06-21 17:25:44 +02:00
parent 415d4ab23d
commit de99945af0
16 changed files with 285 additions and 263 deletions

View File

@ -80,7 +80,6 @@ static Genode::Env *_env_ptr;
namespace Genode {
extern void bootstrap_component();
extern void call_global_static_constructors();
struct Thread_meta_data_created;
@ -131,8 +130,9 @@ Genode::size_t Component::stack_size()
int main()
{
Genode::init_platform();
Genode::bootstrap_component();
using namespace Genode;
bootstrap_component(init_platform());
/* never reached */
}