mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
Cleanup of parent-cap handling
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
This commit is contained in:
@ -90,7 +90,7 @@ class Genode::Platform_env_base : public Env_deprecated
|
||||
Pd_session *pd_session() override { return &_local_pd_session; }
|
||||
Pd_session_capability pd_session_cap() override { return _pd_session_cap; }
|
||||
|
||||
void reinit(Native_capability::Dst, long) override;
|
||||
void reinit(Native_capability::Raw) override;
|
||||
void reinit_main_thread(Capability<Region_map> &) override;
|
||||
};
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <base/internal/platform_env.h>
|
||||
|
||||
|
||||
void Genode::Platform_env_base::reinit(Native_capability::Dst, long) { }
|
||||
void Genode::Platform_env_base::reinit(Native_capability::Raw) { }
|
||||
|
||||
|
||||
void Genode::Platform_env_base::reinit_main_thread(Capability<Region_map> &) { }
|
||||
|
Reference in New Issue
Block a user