base: remove env_deprecated from thread-start code

This patch replaces the internal use 'env_deprecated()' from the
implementation of the thread API in the base library. It also
replaces the global accessor 'main_thread_cap' by the explicit
propagation of the main-thread's capability to the single point of
use via a new 'init_thread_bootstap' function.

Issue #4784
This commit is contained in:
Norman Feske
2023-06-20 13:45:33 +02:00
parent adf0b893e8
commit 3489672bc0
19 changed files with 233 additions and 57 deletions

View File

@ -90,9 +90,6 @@ Platform_generic &Core::platform() { return platform_specific(); }
void Genode::init_platform() { core_env(); }
Thread_capability Genode::main_thread_cap() { return Thread_capability(); }
/**
* Dummy implementation for core that has no parent to ask for resources
*/