2017-02-27 18:54:03 +00:00
|
|
|
/*
|
|
|
|
* \brief Client-side NOVA-specific CPU session interface
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2016-04-21
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2016-2017 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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; }
|
|
|
|
|
|
|
|
|
2021-01-13 15:23:25 +00:00
|
|
|
struct Genode::Nova_native_cpu_client : Rpc_client<Cpu_session::Native_cpu>
|
2017-02-27 18:54:03 +00:00
|
|
|
{
|
2021-01-13 15:23:25 +00:00
|
|
|
explicit Nova_native_cpu_client(Capability<Cpu_session::Native_cpu> cap)
|
|
|
|
: Rpc_client<Cpu_session::Native_cpu>(cap) { }
|
2017-02-27 18:54:03 +00:00
|
|
|
|
|
|
|
void thread_type(Thread_capability thread_cap, Thread_type thread_type,
|
2019-02-14 21:39:08 +00:00
|
|
|
Exception_base exception_base) override {
|
2017-02-27 18:54:03 +00:00
|
|
|
call<Rpc_thread_type>(thread_cap, thread_type, exception_base); }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__NOVA_NATIVE_CPU__CLIENT_H_ */
|