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

@ -402,6 +402,11 @@ static void *thread_start(void *arg)
}
void Genode::init_thread(Cpu_session &, Region_map &) { }
void Genode::init_thread_start(Capability<Pd_session>) { }
void Genode::init_thread_bootstrap(Thread_capability) { }
extern "C" void *malloc(::size_t size);
extern "C" void free(void *);