mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-08 11:38:10 +00:00
This patch alleviates the need for a Native_capability::Dst at the API level. The former use case of this type as argument to Deprecated_env::reinit uses the opaque Native_capability::Raw type instead. The 'Raw' type contains the portion of the capability that is transferred as-is when delegating the capability (i.e., when installing the parent capability into a new component, or when installing a new parent capability into a new forked Noux process). This information can be retrieved via the new Native_capability::raw method. Furthermore, this patch moves the functions for retriving the parent capability to base/internal/parent_cap.h, which is meant to be implemented in platform-specific ways. It replaces the former set of startup/internal/_main_parent_cap.h headers. Issue #1993
25 lines
590 B
C++
25 lines
590 B
C++
/*
|
|
* \brief Environment reinitialization
|
|
* \author Norman Feske
|
|
* \date 2016-04-29
|
|
*
|
|
* Support functions for implementing fork on Noux, which is not supported on
|
|
* Linux.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2016 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
/* base-internal includes */
|
|
#include <base/internal/platform_env.h>
|
|
|
|
|
|
void Genode::Platform_env_base::reinit(Native_capability::Raw) { }
|
|
|
|
|
|
void Genode::Platform_env_base::reinit_main_thread(Capability<Region_map> &) { }
|