genode/repos/ports-foc/src/lib/l4lx/dataspace.cc
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

32 lines
718 B
C++

/*
* \brief Dataspace abstraction between Genode and L4Linux
* \author Stefan Kalkowski
* \date 2011-03-20
*/
/*
* Copyright (C) 2011-2013 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.
*/
/* Genode includes */
#include <base/env.h>
/* L4lx includes */
#include <dataspace.h>
L4lx::Dataspace* L4lx::Dataspace_tree::insert(const char* name,
Genode::Dataspace_capability cap)
{
using namespace L4lx;
Genode::Dataspace_client dsc(cap);
Dataspace *ds =
new (Genode::env()->heap()) Single_dataspace(name, dsc.size(), cap);
insert(ds);
return ds;
}