7582396e9c
* enables world-switch using ARM virtualization extensions * split TrustZone and virtualization extensions hardly from platforms, where it is not used * extend 'Vm_session' interface to enable configuration of guest-physical memory * introduce VM destruction syscall * add virtual machine monitor for hw_arndale that emulates a simplified version of ARM's Versatile Express Cortex A15 board for a Linux guest OS Fixes #1405
32 lines
646 B
C++
32 lines
646 B
C++
/*
|
|
* \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 */
|
|
#include <kernel/kernel.h>
|
|
#include <kernel/cpu.h>
|
|
#include <kernel/irq.h>
|
|
#include <pic.h>
|
|
|
|
|
|
void Kernel::Irq::disable() const { pic()->mask(_id()); }
|
|
|
|
|
|
void Kernel::Irq::enable() const { pic()->unmask(_id(), Cpu::executing_id()); }
|
|
|
|
|
|
Kernel::Irq::Pool * Kernel::User_irq::_pool()
|
|
{
|
|
static Irq::Pool p;
|
|
return &p;
|
|
}
|