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

@ -0,0 +1,24 @@
/*
* \brief Access to the component's initial thread capability
* \author Norman Feske
* \date 2017-05-10
*/
/*
* Copyright (C) 2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
/* Genode includes */
#include <deprecated/env.h>
/* base-internal includes */
#include <base/internal/globals.h>
#include <base/internal/parent_cap.h>
Genode::Thread_capability Genode::main_thread_cap()
{
return Genode::env_deprecated()->parent()->main_thread_cap();
}