2012-08-08 15:12:10 +00:00
|
|
|
/*
|
|
|
|
* \brief Cpu session interface extension for NOVA
|
|
|
|
* \author Alexander Boettcher
|
|
|
|
* \date 2012-07-27
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2012-2012 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_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 int
|
|
|
|
start_exc_base_vcpu(Thread_capability thread, addr_t ip,
|
2012-08-08 15:12:39 +00:00
|
|
|
addr_t sp, addr_t exc_base, bool vcpu) = 0;
|
2012-08-08 15:12:10 +00:00
|
|
|
virtual
|
|
|
|
Native_capability native_cap(Thread_capability cap) = 0;
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
** RPC declaration **
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
GENODE_RPC(Rpc_start_exc_base_vcpu, int, start_exc_base_vcpu,
|
2012-08-08 15:12:39 +00:00
|
|
|
Thread_capability, addr_t, addr_t, addr_t, bool);
|
2012-08-08 15:12:10 +00:00
|
|
|
GENODE_RPC(Rpc_native_cap, Native_capability, native_cap,
|
|
|
|
Thread_capability);
|
|
|
|
|
|
|
|
GENODE_RPC_INTERFACE_INHERIT(Cpu_session, Rpc_native_cap,
|
|
|
|
Rpc_start_exc_base_vcpu);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__NOVA_CPU_SESSION__NOVA_CPU_SESSION_H_ */
|