mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
nova: remove native_cap method from cpu_session
Remove native_cap method which caused the cpu_session implementation of the gdb server to fail. Issue #478
This commit is contained in:
parent
dd2e006309
commit
2c983f3c89
@ -73,9 +73,6 @@ namespace Genode {
|
||||
void single_step(Thread_capability thread, bool enable) {
|
||||
call<Rpc_single_step>(thread, enable); }
|
||||
|
||||
Native_capability native_cap(Thread_capability cap) {
|
||||
return call<Rpc_native_cap>(cap); }
|
||||
|
||||
Affinity::Space affinity_space() const {
|
||||
return call<Rpc_affinity_space>(); }
|
||||
|
||||
|
@ -23,8 +23,6 @@ namespace Genode {
|
||||
{
|
||||
virtual ~Nova_cpu_session() { }
|
||||
|
||||
virtual Native_capability native_cap(Thread_capability cap) = 0;
|
||||
|
||||
virtual Native_capability pause_sync(Thread_capability) = 0;
|
||||
|
||||
|
||||
@ -32,13 +30,10 @@ namespace Genode {
|
||||
** RPC declaration **
|
||||
*********************/
|
||||
|
||||
GENODE_RPC(Rpc_native_cap, Native_capability, native_cap,
|
||||
Thread_capability);
|
||||
GENODE_RPC(Rpc_pause_sync, Native_capability, pause_sync,
|
||||
Thread_capability);
|
||||
|
||||
GENODE_RPC_INTERFACE_INHERIT(Cpu_session, Rpc_native_cap,
|
||||
Rpc_pause_sync);
|
||||
GENODE_RPC_INTERFACE_INHERIT(Cpu_session, Rpc_pause_sync);
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -20,18 +20,6 @@
|
||||
using namespace Genode;
|
||||
|
||||
|
||||
Native_capability
|
||||
Cpu_session_component::native_cap(Thread_capability thread_cap)
|
||||
{
|
||||
Object_pool<Cpu_thread_component>::Guard
|
||||
thread(_thread_ep->lookup_and_lock(thread_cap));
|
||||
if (!thread || !thread->platform_thread())
|
||||
return Native_capability::invalid_cap();
|
||||
|
||||
return thread->platform_thread()->native_cap();
|
||||
}
|
||||
|
||||
|
||||
Native_capability
|
||||
Cpu_session_component::pause_sync(Thread_capability thread_cap)
|
||||
{
|
||||
|
@ -204,7 +204,6 @@ namespace Genode {
|
||||
** NOVA specific extensions **
|
||||
******************************/
|
||||
|
||||
Native_capability native_cap(Thread_capability);
|
||||
Native_capability pause_sync(Thread_capability);
|
||||
};
|
||||
}
|
||||
|
@ -149,29 +149,7 @@ namespace Genode {
|
||||
_pd = pd, _is_main_thread = is_main_thread;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return native EC cap with specific rights mask set.
|
||||
* If the cap is mapped the kernel will demote the
|
||||
* rights of the EC as specified by the rights mask.
|
||||
*
|
||||
* The cap is supposed to be returned to clients,
|
||||
* which they have to use as argument to identify
|
||||
* the thread to which they want attach portals.
|
||||
*
|
||||
* The demotion by the kernel during the map operation
|
||||
* takes care that the EC cap itself contains
|
||||
* no usable rights for the clients.
|
||||
*/
|
||||
Native_capability native_cap()
|
||||
{
|
||||
using namespace Nova;
|
||||
|
||||
return Native_capability(
|
||||
_sel_ec(), Obj_crd::RIGHT_EC_RECALL);
|
||||
}
|
||||
|
||||
void single_step(bool on);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user