2015-03-17 11:51:00 +01:00
|
|
|
/*
|
2016-04-29 13:23:19 +02:00
|
|
|
* \brief Generic implementation parts of the signaling framework
|
2015-03-17 11:51:00 +01:00
|
|
|
* \author Norman Feske
|
|
|
|
* \author Alexander Boettcher
|
2017-05-10 20:11:38 +02:00
|
|
|
* \date 2015-03-17
|
2015-03-17 11:51:00 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-05-10 20:11:38 +02:00
|
|
|
* Copyright (C) 2015-2017 Genode Labs GmbH
|
2015-03-17 11:51:00 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 13:23:52 +01:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2015-03-17 11:51:00 +01:00
|
|
|
*/
|
|
|
|
|
2017-05-10 20:11:38 +02:00
|
|
|
/* Genode includes */
|
2016-01-14 13:22:00 +01:00
|
|
|
#include <base/env.h>
|
|
|
|
#include <base/trace/events.h>
|
2017-05-10 20:11:38 +02:00
|
|
|
#include <base/signal.h>
|
|
|
|
|
|
|
|
/* base-internal includes */
|
|
|
|
#include <base/internal/globals.h>
|
2015-03-17 11:51:00 +01:00
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
2017-05-10 20:11:38 +02:00
|
|
|
static Pd_session *_pd;
|
|
|
|
|
|
|
|
|
|
|
|
void Genode::init_signal_transmitter(Env &env) { _pd = &env.pd(); }
|
2016-01-14 13:22:00 +01:00
|
|
|
|
|
|
|
|
2015-03-17 11:51:00 +01:00
|
|
|
void Signal_transmitter::submit(unsigned cnt)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Trace::Signal_submit trace_event(cnt);
|
|
|
|
}
|
2017-05-10 20:11:38 +02:00
|
|
|
|
|
|
|
if (_pd)
|
|
|
|
_pd->submit(_context, cnt);
|
|
|
|
else
|
|
|
|
warning("missing call of 'init_signal_submit'");
|
2015-03-17 11:51:00 +01:00
|
|
|
}
|