mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 07:08:18 +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
24
repos/base/src/lib/base/main_thread_cap.cc
Normal file
24
repos/base/src/lib/base/main_thread_cap.cc
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user