nova: add feature to yield a thread

used by virtualbox intensively
This commit is contained in:
Alexander Boettcher
2014-01-30 10:19:17 +01:00
committed by Christian Helmuth
parent 39a7ffd233
commit dd95266235
7 changed files with 128 additions and 7 deletions

View File

@ -41,7 +41,7 @@ Genode::Thread_base * __attribute__((weak)) Genode::Thread_base::myself()
}
static inline void thread_yield() { }
static inline void thread_yield() { Nova::ec_ctrl(Nova::EC_YIELD); }
static inline bool thread_check_stopped_and_restart(Genode::Thread_base *thread_base)

View File

@ -296,7 +296,7 @@ void Pager_object::client_cancel_blocking()
uint8_t Pager_object::client_recall()
{
return ec_ctrl(_state.sel_client_ec);
return ec_ctrl(EC_RECALL, _state.sel_client_ec);
}