core: simplify initialization

This patch removes the 'Core_parent' and 'Core_pd_session', and reduces
the 'Core_env'.
This commit is contained in:
Norman Feske
2017-05-11 00:07:54 +02:00
committed by Christian Helmuth
parent a1df4fee44
commit 65225a94b1
29 changed files with 261 additions and 684 deletions

View File

@ -23,6 +23,7 @@
/* base-internal includes */
#include <base/internal/stack.h>
#include <base/internal/globals.h>
/* Linux syscall bindings */
#include <linux_syscalls.h>
@ -98,7 +99,7 @@ void Thread::_init_platform_thread(size_t weight, Type type)
}
/* adjust initial object state for main threads */
native_thread().futex_counter = main_thread_futex_counter;
_thread_cap = env_deprecated()->parent()->main_thread_cap();
_thread_cap = main_thread_cap();
}