2012-08-08 15:12:10 +00:00
|
|
|
/*
|
|
|
|
* \brief Cpu session interface extension for NOVA
|
|
|
|
* \author Alexander Boettcher
|
|
|
|
* \date 2012-07-27
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-08-08 15:12:10 +00:00
|
|
|
*
|
|
|
|
* 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_CPU_SESSION__NOVA_CPU_SESSION_H_
|
|
|
|
#define _INCLUDE__NOVA_CPU_SESSION__NOVA_CPU_SESSION_H_
|
|
|
|
|
|
|
|
#include <base/stdint.h>
|
|
|
|
#include <cpu_session/cpu_session.h>
|
|
|
|
|
|
|
|
namespace Genode {
|
|
|
|
|
|
|
|
struct Nova_cpu_session : Cpu_session
|
|
|
|
{
|
|
|
|
virtual ~Nova_cpu_session() { }
|
|
|
|
|
|
|
|
virtual
|
|
|
|
Native_capability native_cap(Thread_capability cap) = 0;
|
|
|
|
|
2012-08-24 07:29:54 +00:00
|
|
|
virtual
|
|
|
|
Native_capability pause_sync(Thread_capability) = 0;
|
|
|
|
|
2012-08-08 15:12:10 +00:00
|
|
|
/*********************
|
|
|
|
** RPC declaration **
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
GENODE_RPC(Rpc_native_cap, Native_capability, native_cap,
|
|
|
|
Thread_capability);
|
2012-08-24 07:29:54 +00:00
|
|
|
GENODE_RPC(Rpc_pause_sync, Native_capability, pause_sync,
|
|
|
|
Thread_capability);
|
2012-08-08 15:12:10 +00:00
|
|
|
|
|
|
|
GENODE_RPC_INTERFACE_INHERIT(Cpu_session, Rpc_native_cap,
|
2012-08-22 10:10:04 +00:00
|
|
|
Rpc_pause_sync);
|
2012-08-08 15:12:10 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__NOVA_CPU_SESSION__NOVA_CPU_SESSION_H_ */
|