2012-03-09 11:39:46 +01:00
|
|
|
/*
|
|
|
|
* \brief Copy a platform-capability to another protection domain.
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2012-03-09
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 21:44:47 +01:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-03-09 11:39:46 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <util/string.h>
|
2016-06-13 13:53:58 +02:00
|
|
|
#include <base/native_capability.h>
|
2012-03-09 11:39:46 +01:00
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
void Cap_dst_policy::copy(void* dst, Native_capability_tpl<Cap_dst_policy>* src) {
|
|
|
|
memcpy(dst, src, sizeof(Native_capability_tpl<Cap_dst_policy>)); }
|