Remove 'Env::reinit' and 'Env::reinit_main_thread'

Fixes #4404
This commit is contained in:
Norman Feske
2022-02-03 13:58:52 +01:00
parent 62b4871c5c
commit 50c2b0066f
25 changed files with 15 additions and 285 deletions

View File

@ -100,14 +100,6 @@ void prepare_init_main_thread()
}
}
void prepare_reinit_main_thread()
{
using namespace Genode;
construct_at<Capability_map>(&cap_map());
construct_at<Initial_cap_range>(&initial_cap_range());
prepare_init_main_thread();
}
/************
** Thread **

View File

@ -81,7 +81,7 @@ void Thread::_init_platform_thread(size_t weight, Type type)
native_thread().ec_sel = Native_thread::INVALID_INDEX;
/* for main threads the member initialization differs */
if (type == MAIN || type == REINITIALIZED_MAIN) {
if (type == MAIN) {
_thread_cap = main_thread_cap();
native_thread().exc_pt_sel = 0;