mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 07:22:25 +00:00
fe19103546
The 'pause' call on base-nova assumes that a thread can solely block in its associated semaphore. Main reason is that so core can unblock a thread in order that the recall exception gets delivered and the register state can be obtained. Unfortunately the signal session implementation creates a semaphore, which is unknown by the pager code. Instead create the semaphore via the pager of the thread, so that the pager can unblock the signal thread when a pause is issued. Issue #478
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
/*
|
|
* \brief Signal-source server interface
|
|
* \author Norman Feske
|
|
* \date 2010-02-03
|
|
*
|
|
* This file is only included by 'signal_session/server.h' and relies on the
|
|
* headers included there. No include guards are needed. It is a separate
|
|
* header file to make it easily replaceable by a platform-specific
|
|
* implementation.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2010-2013 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__SIGNAL_SESSION__SOURCE_SERVER_H_
|
|
#define _INCLUDE__SIGNAL_SESSION__SOURCE_SERVER_H_
|
|
|
|
#include <base/rpc_server.h>
|
|
#include <signal_session/nova_source.h>
|
|
|
|
namespace Genode {
|
|
|
|
struct Signal_source_rpc_object : Rpc_object<Nova_signal_source, Signal_source_rpc_object>
|
|
{
|
|
protected:
|
|
|
|
Native_capability _blocking_semaphore;
|
|
|
|
public:
|
|
|
|
void _register_semaphore(Native_capability const &cap)
|
|
{
|
|
if (_blocking_semaphore.valid())
|
|
PWRN("overwritting blocking signal semaphore !!!");
|
|
_blocking_semaphore = cap;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif /* _INCLUDE__SIGNAL_SESSION__SOURCE_SERVER_H_ */
|