mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-20 08:03:56 +00:00
core: simplify initialization
This patch removes the 'Core_parent' and 'Core_pd_session', and reduces the 'Core_env'.
This commit is contained in:
committed by
Christian Helmuth
parent
a1df4fee44
commit
65225a94b1
@ -25,6 +25,7 @@
|
||||
|
||||
/* base-internal includes */
|
||||
#include <base/internal/stack.h>
|
||||
#include <base/internal/globals.h>
|
||||
|
||||
/* NOVA includes */
|
||||
#include <nova/syscalls.h>
|
||||
@ -80,7 +81,7 @@ void Thread::_init_platform_thread(size_t weight, Type type)
|
||||
|
||||
/* for main threads the member initialization differs */
|
||||
if (type == MAIN || type == REINITIALIZED_MAIN) {
|
||||
_thread_cap = env_deprecated()->parent()->main_thread_cap();
|
||||
_thread_cap = main_thread_cap();
|
||||
|
||||
native_thread().exc_pt_sel = 0;
|
||||
native_thread().ec_sel = Nova::PT_SEL_MAIN_EC;
|
||||
|
Reference in New Issue
Block a user