mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
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:
@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user