diff --git a/src/application/hello_world/main.cpp b/src/application/hello_world/main.cpp index bf2c79a..f2d7946 100644 --- a/src/application/hello_world/main.cpp +++ b/src/application/hello_world/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include class HelloWorldTask : public mx::tasking::TaskInterface @@ -16,11 +16,12 @@ public: } }; -int main() +void Component::construct(Genode::Env &env) { // Define which cores will be used (1 core here). const auto cores = mx::util::core_set::build(1); + mx::system::Environment::env = env; { // Scope for the MxTasking runtime. // Create a runtime for the given cores. @@ -36,6 +37,4 @@ int main() // Schedule the task. mx::tasking::runtime::spawn(*hello_world_task); } - - return 0; } \ No newline at end of file