mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-16 06:08:16 +00:00
base: refactor signal_transmitter::submit
Move it to platform specific .cc file, so that it may get re-implemented platform specifically if needed. Issue #1446
This commit is contained in:
committed by
Christian Helmuth
parent
dac3efcc02
commit
1f8fad8fa1
32
repos/base-hw/src/base/signal/platform.cc
Normal file
32
repos/base-hw/src/base/signal/platform.cc
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* \brief Implementations of the signaling framework specific for HW-core
|
||||
* \author Martin Stein
|
||||
* \date 2012-05-05
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2012-2015 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.
|
||||
*/
|
||||
|
||||
|
||||
/* Genode includes */
|
||||
#include <signal_session/connection.h>
|
||||
|
||||
/* base-hw includes */
|
||||
#include <kernel/interface.h>
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
/************************
|
||||
** Signal transmitter **
|
||||
************************/
|
||||
void Signal_transmitter::submit(unsigned cnt)
|
||||
{
|
||||
{
|
||||
Trace::Signal_submit trace_event(cnt);
|
||||
}
|
||||
Kernel::submit_signal(_context.dst(), cnt);
|
||||
}
|
@ -79,10 +79,7 @@ void Signal_context::submit(unsigned num)
|
||||
** Signal transmitter **
|
||||
************************/
|
||||
|
||||
void Signal_transmitter::submit(unsigned const cnt)
|
||||
{
|
||||
Kernel::submit_signal(_context.dst(), cnt);
|
||||
}
|
||||
Signal_connection * Signal_transmitter::connection() { return signal_connection(); }
|
||||
|
||||
|
||||
/*********************
|
||||
|
Reference in New Issue
Block a user