mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 18:47:01 +00:00
33 lines
868 B
C
33 lines
868 B
C
|
/*
|
||
|
* \brief Client-side NOVA-specific CPU session interface
|
||
|
* \author Norman Feske
|
||
|
* \date 2016-04-21
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* 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.
|
||
|
*/
|
||
|
|
||
|
#ifndef _INCLUDE__NOVA_NATIVE_CPU__CLIENT_H_
|
||
|
#define _INCLUDE__NOVA_NATIVE_CPU__CLIENT_H_
|
||
|
|
||
|
#include <nova_native_cpu/nova_native_cpu.h>
|
||
|
#include <base/rpc_client.h>
|
||
|
|
||
|
namespace Genode { struct Nova_native_cpu_client; }
|
||
|
|
||
|
|
||
|
struct Genode::Nova_native_cpu_client : Rpc_client<Nova_native_cpu>
|
||
|
{
|
||
|
explicit Nova_native_cpu_client(Capability<Native_cpu> cap)
|
||
|
: Rpc_client<Nova_native_cpu>(static_cap_cast<Nova_native_cpu>(cap)) { }
|
||
|
|
||
|
Native_capability pager_cap(Thread_capability cap) {
|
||
|
return call<Rpc_pager_cap>(cap); }
|
||
|
};
|
||
|
|
||
|
#endif /* _INCLUDE__NOVA_NATIVE_CPU__CLIENT_H_ */
|