2013-10-30 13:56:57 +01:00
|
|
|
/*
|
|
|
|
* \brief Kernel back-end and core front-end for user interrupts
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2013-10-28
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* core includes */
|
2014-10-10 16:13:52 +02:00
|
|
|
#include <kernel/cpu.h>
|
2013-10-30 13:56:57 +01:00
|
|
|
#include <kernel/irq.h>
|
|
|
|
#include <pic.h>
|
|
|
|
|
|
|
|
using namespace Kernel;
|
|
|
|
|
|
|
|
namespace Kernel { Pic * pic(); }
|
|
|
|
|
|
|
|
void Irq::_disable() const { pic()->mask(_id()); }
|
|
|
|
|
2014-10-10 16:13:52 +02:00
|
|
|
void Irq::_enable() const { pic()->unmask(_id(), Cpu::executing_id()); }
|