|
|
|
@ -16,6 +16,7 @@
|
|
|
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
|
#include <base/rpc_server.h>
|
|
|
|
|
#include <util/arg_string.h>
|
|
|
|
|
#include <pd_session/pd_session.h>
|
|
|
|
|
|
|
|
|
|
/* core includes */
|
|
|
|
@ -27,6 +28,24 @@ namespace Genode {
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Read and store the PD label
|
|
|
|
|
*/
|
|
|
|
|
struct Label {
|
|
|
|
|
|
|
|
|
|
enum { MAX_LEN = 64 };
|
|
|
|
|
char string[MAX_LEN];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructor
|
|
|
|
|
*/
|
|
|
|
|
Label(char const *args)
|
|
|
|
|
{
|
|
|
|
|
Arg_string::find_arg(args, "label").string(string, sizeof(string), "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} const _label;
|
|
|
|
|
|
|
|
|
|
Platform_pd _pd;
|
|
|
|
|
Parent_capability _parent;
|
|
|
|
|
Rpc_entrypoint *_thread_ep;
|
|
|
|
@ -34,7 +53,7 @@ namespace Genode {
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
Pd_session_component(Rpc_entrypoint *thread_ep, const char *args)
|
|
|
|
|
: _thread_ep(thread_ep) { }
|
|
|
|
|
: _label(args), _pd(_label.string), _thread_ep(thread_ep) { }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************/
|
|
|
|
|