2015-02-19 14:50:27 +01:00
|
|
|
/*
|
|
|
|
* \brief Kernel backend for virtual machines
|
|
|
|
* \author Stefan Kalkowski
|
|
|
|
* \date 2015-02-10
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 13:23:52 +01:00
|
|
|
* Copyright (C) 2015-2017 Genode Labs GmbH
|
2015-02-19 14:50:27 +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-02-19 14:50:27 +01:00
|
|
|
*/
|
|
|
|
|
base: avoid use of deprecated base/printf.h
Besides adapting the components to the use of base/log.h, the patch
cleans up a few base headers, i.e., it removes unused includes from
root/component.h, specifically base/heap.h and
ram_session/ram_session.h. Hence, components that relied on the implicit
inclusion of those headers have to manually include those headers now.
While adjusting the log messages, I repeatedly stumbled over the problem
that printing char * arguments is ambiguous. It is unclear whether to
print the argument as pointer or null-terminated string. To overcome
this problem, the patch introduces a new type 'Cstring' that allows the
caller to express that the argument should be handled as null-terminated
string. As a nice side effect, with this type in place, the optional len
argument of the 'String' class could be removed. Instead of supplying a
pair of (char const *, size_t), the constructor accepts a 'Cstring'.
This, in turn, clears the way let the 'String' constructor use the new
output mechanism to assemble a string from multiple arguments (and
thereby getting rid of snprintf within Genode in the near future).
To enforce the explicit resolution of the char * ambiguity, the 'char *'
overload of the 'print' function is marked as deleted.
Issue #1987
2016-07-13 19:07:09 +02:00
|
|
|
#include <base/log.h>
|
2017-02-21 13:46:59 +01:00
|
|
|
#include <hw/assert.h>
|
|
|
|
|
2015-02-19 14:50:27 +01:00
|
|
|
#include <platform_pd.h>
|
2017-10-05 16:11:24 +02:00
|
|
|
#include <kernel/cpu.h>
|
2015-02-19 14:50:27 +01:00
|
|
|
#include <kernel/vm.h>
|
|
|
|
|
|
|
|
namespace Kernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* ARM's virtual interrupt controller cpu interface
|
|
|
|
*/
|
|
|
|
struct Virtual_pic;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ARM's virtual timer counter
|
|
|
|
*/
|
|
|
|
struct Virtual_timer;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Kernel private virtualization interrupts, delivered to VM/VMMs
|
|
|
|
*/
|
|
|
|
struct Vm_irq;
|
|
|
|
}
|
|
|
|
|
|
|
|
using namespace Kernel;
|
|
|
|
|
2017-06-30 12:00:27 +02:00
|
|
|
extern "C" void kernel();
|
|
|
|
extern void * kernel_stack;
|
|
|
|
extern "C" void hypervisor_enter_vm(Cpu::Context*);
|
|
|
|
|
|
|
|
struct Host_context {
|
|
|
|
addr_t sp;
|
|
|
|
addr_t ip;
|
|
|
|
Cpu::Ttbr_64bit::access_t ttbr0;
|
|
|
|
Cpu::Ttbr_64bit::access_t ttbr1;
|
|
|
|
Cpu::Sctlr::access_t sctlr;
|
|
|
|
Cpu::Ttbcr::access_t ttbcr;
|
|
|
|
Cpu::Mair0::access_t mair0;
|
|
|
|
Cpu::Dacr::access_t dacr;
|
|
|
|
} vt_host_context;
|
2015-02-19 14:50:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
struct Kernel::Vm_irq : Kernel::Irq
|
|
|
|
{
|
Follow practices suggested by "Effective C++"
The patch adjust the code of the base, base-<kernel>, and os repository.
To adapt existing components to fix violations of the best practices
suggested by "Effective C++" as reported by the -Weffc++ compiler
argument. The changes follow the patterns outlined below:
* A class with virtual functions can no longer publicly inherit base
classed without a vtable. The inherited object may either be moved
to a member variable, or inherited privately. The latter would be
used for classes that inherit 'List::Element' or 'Avl_node'. In order
to enable the 'List' and 'Avl_tree' to access the meta data, the
'List' must become a friend.
* Instead of adding a virtual destructor to abstract base classes,
we inherit the new 'Interface' class, which contains a virtual
destructor. This way, single-line abstract base classes can stay
as compact as they are now. The 'Interface' utility resides in
base/include/util/interface.h.
* With the new warnings enabled, all member variables must be explicitly
initialized. Basic types may be initialized with '='. All other types
are initialized with braces '{ ... }' or as class initializers. If
basic types and non-basic types appear in a row, it is nice to only
use the brace syntax (also for basic types) and align the braces.
* If a class contains pointers as members, it must now also provide a
copy constructor and assignment operator. In the most cases, one
would make them private, effectively disallowing the objects to be
copied. Unfortunately, this warning cannot be fixed be inheriting
our existing 'Noncopyable' class (the compiler fails to detect that
the inheriting class cannot be copied and still gives the error).
For now, we have to manually add declarations for both the copy
constructor and assignment operator as private class members. Those
declarations should be prepended with a comment like this:
/*
* Noncopyable
*/
Thread(Thread const &);
Thread &operator = (Thread const &);
In the future, we should revisit these places and try to replace
the pointers with references. In the presence of at least one
reference member, the compiler would no longer implicitly generate
a copy constructor. So we could remove the manual declaration.
Issue #465
2017-12-21 15:42:15 +01:00
|
|
|
Vm_irq(unsigned const irq)
|
|
|
|
:
|
base/core: use references instead of pointers
This patch replaces the former prominent use of pointers by references
wherever feasible. This has the following benefits:
* The contract between caller and callee becomes more obvious. When
passing a reference, the contract says that the argument cannot be
a null pointer. The caller is responsible to ensure that. Therefore,
the use of reference eliminates the need to add defensive null-pointer
checks at the callee site, which sometimes merely exist to be on the
safe side. The bottom line is that the code becomes easier to follow.
* Reference members must be initialized via an object initializer,
which promotes a programming style that avoids intermediate object-
construction states. Within core, there are still a few pointers
as member variables left though. E.g., caused by the late association
of 'Platform_thread' objects with their 'Platform_pd' objects.
* If no pointers are present as member variables, we don't need to
manually provide declarations of a private copy constructor and
an assignment operator to avoid -Weffc++ errors "class ... has
pointer data members [-Werror=effc++]".
This patch also changes a few system bindings on NOVA and Fiasco.OC,
e.g., the return value of the global 'cap_map' accessor has become a
reference. Hence, the patch touches a few places outside of core.
Fixes #3135
2019-01-24 22:00:01 +01:00
|
|
|
Kernel::Irq(irq, cpu_pool().executing_cpu().irq_pool())
|
Follow practices suggested by "Effective C++"
The patch adjust the code of the base, base-<kernel>, and os repository.
To adapt existing components to fix violations of the best practices
suggested by "Effective C++" as reported by the -Weffc++ compiler
argument. The changes follow the patterns outlined below:
* A class with virtual functions can no longer publicly inherit base
classed without a vtable. The inherited object may either be moved
to a member variable, or inherited privately. The latter would be
used for classes that inherit 'List::Element' or 'Avl_node'. In order
to enable the 'List' and 'Avl_tree' to access the meta data, the
'List' must become a friend.
* Instead of adding a virtual destructor to abstract base classes,
we inherit the new 'Interface' class, which contains a virtual
destructor. This way, single-line abstract base classes can stay
as compact as they are now. The 'Interface' utility resides in
base/include/util/interface.h.
* With the new warnings enabled, all member variables must be explicitly
initialized. Basic types may be initialized with '='. All other types
are initialized with braces '{ ... }' or as class initializers. If
basic types and non-basic types appear in a row, it is nice to only
use the brace syntax (also for basic types) and align the braces.
* If a class contains pointers as members, it must now also provide a
copy constructor and assignment operator. In the most cases, one
would make them private, effectively disallowing the objects to be
copied. Unfortunately, this warning cannot be fixed be inheriting
our existing 'Noncopyable' class (the compiler fails to detect that
the inheriting class cannot be copied and still gives the error).
For now, we have to manually add declarations for both the copy
constructor and assignment operator as private class members. Those
declarations should be prepended with a comment like this:
/*
* Noncopyable
*/
Thread(Thread const &);
Thread &operator = (Thread const &);
In the future, we should revisit these places and try to replace
the pointers with references. In the presence of at least one
reference member, the compiler would no longer implicitly generate
a copy constructor. So we could remove the manual declaration.
Issue #465
2017-12-21 15:42:15 +01:00
|
|
|
{ }
|
2015-02-19 14:50:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A VM interrupt gets injected into the VM scheduled on the current CPU
|
|
|
|
*/
|
|
|
|
void occurred()
|
|
|
|
{
|
base/core: use references instead of pointers
This patch replaces the former prominent use of pointers by references
wherever feasible. This has the following benefits:
* The contract between caller and callee becomes more obvious. When
passing a reference, the contract says that the argument cannot be
a null pointer. The caller is responsible to ensure that. Therefore,
the use of reference eliminates the need to add defensive null-pointer
checks at the callee site, which sometimes merely exist to be on the
safe side. The bottom line is that the code becomes easier to follow.
* Reference members must be initialized via an object initializer,
which promotes a programming style that avoids intermediate object-
construction states. Within core, there are still a few pointers
as member variables left though. E.g., caused by the late association
of 'Platform_thread' objects with their 'Platform_pd' objects.
* If no pointers are present as member variables, we don't need to
manually provide declarations of a private copy constructor and
an assignment operator to avoid -Weffc++ errors "class ... has
pointer data members [-Werror=effc++]".
This patch also changes a few system bindings on NOVA and Fiasco.OC,
e.g., the return value of the global 'cap_map' accessor has become a
reference. Hence, the patch touches a few places outside of core.
Fixes #3135
2019-01-24 22:00:01 +01:00
|
|
|
Cpu_job & job = cpu_pool().executing_cpu().scheduled_job();
|
2015-12-09 12:02:00 +01:00
|
|
|
Vm *vm = dynamic_cast<Vm*>(&job);
|
2015-02-19 14:50:27 +01:00
|
|
|
if (!vm)
|
base: avoid use of deprecated base/printf.h
Besides adapting the components to the use of base/log.h, the patch
cleans up a few base headers, i.e., it removes unused includes from
root/component.h, specifically base/heap.h and
ram_session/ram_session.h. Hence, components that relied on the implicit
inclusion of those headers have to manually include those headers now.
While adjusting the log messages, I repeatedly stumbled over the problem
that printing char * arguments is ambiguous. It is unclear whether to
print the argument as pointer or null-terminated string. To overcome
this problem, the patch introduces a new type 'Cstring' that allows the
caller to express that the argument should be handled as null-terminated
string. As a nice side effect, with this type in place, the optional len
argument of the 'String' class could be removed. Instead of supplying a
pair of (char const *, size_t), the constructor accepts a 'Cstring'.
This, in turn, clears the way let the 'String' constructor use the new
output mechanism to assemble a string from multiple arguments (and
thereby getting rid of snprintf within Genode in the near future).
To enforce the explicit resolution of the char * ambiguity, the 'char *'
overload of the 'print' function is marked as deleted.
Issue #1987
2016-07-13 19:07:09 +02:00
|
|
|
Genode::error("VM timer interrupt while VM is not runnning!");
|
2015-02-19 14:50:27 +01:00
|
|
|
else
|
2015-05-19 14:18:40 +02:00
|
|
|
vm->inject_irq(_irq_nr);
|
2015-02-19 14:50:27 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct Kernel::Virtual_pic : Genode::Mmio
|
|
|
|
{
|
|
|
|
struct Gich_hcr : Register<0x00, 32> { };
|
|
|
|
struct Gich_vmcr : Register<0x08, 32> { };
|
|
|
|
struct Gich_misr : Register<0x10, 32> { };
|
|
|
|
struct Gich_eisr0 : Register<0x20, 32> { };
|
|
|
|
struct Gich_elrsr0 : Register<0x30, 32> { };
|
|
|
|
struct Gich_apr : Register<0xf0, 32> { };
|
|
|
|
|
|
|
|
template <unsigned SLOT>
|
|
|
|
struct Gich_lr : Register<0x100 + SLOT*4, 32> { };
|
|
|
|
|
2018-01-24 14:02:35 +01:00
|
|
|
Vm_irq irq { Board::VT_MAINTAINANCE_IRQ };
|
2015-02-19 14:50:27 +01:00
|
|
|
|
|
|
|
Virtual_pic()
|
2017-04-28 15:27:26 +02:00
|
|
|
: Genode::Mmio(Genode::Platform::mmio_to_virt(Board::IRQ_CONTROLLER_VT_CTRL_BASE)) { }
|
2015-02-19 14:50:27 +01:00
|
|
|
|
|
|
|
static Virtual_pic& pic()
|
|
|
|
{
|
|
|
|
static Virtual_pic vgic;
|
|
|
|
return vgic;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Save the virtual interrupt controller state to VM state
|
|
|
|
*/
|
|
|
|
static void save (Genode::Vm_state *s)
|
|
|
|
{
|
|
|
|
s->gic_hcr = pic().read<Gich_hcr >();
|
|
|
|
s->gic_misr = pic().read<Gich_misr >();
|
|
|
|
s->gic_vmcr = pic().read<Gich_vmcr >();
|
|
|
|
s->gic_apr = pic().read<Gich_apr >();
|
|
|
|
s->gic_eisr = pic().read<Gich_eisr0 >();
|
|
|
|
s->gic_elrsr0 = pic().read<Gich_elrsr0>();
|
|
|
|
s->gic_lr[0] = pic().read<Gich_lr<0> >();
|
|
|
|
s->gic_lr[1] = pic().read<Gich_lr<1> >();
|
|
|
|
s->gic_lr[2] = pic().read<Gich_lr<2> >();
|
|
|
|
s->gic_lr[3] = pic().read<Gich_lr<3> >();
|
|
|
|
|
|
|
|
/* disable virtual PIC CPU interface */
|
|
|
|
pic().write<Gich_hcr>(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load the virtual interrupt controller state from VM state
|
|
|
|
*/
|
|
|
|
static void load (Genode::Vm_state *s)
|
|
|
|
{
|
|
|
|
pic().write<Gich_hcr >(s->gic_hcr );
|
|
|
|
pic().write<Gich_misr >(s->gic_misr);
|
|
|
|
pic().write<Gich_vmcr >(s->gic_vmcr);
|
|
|
|
pic().write<Gich_apr >(s->gic_apr );
|
|
|
|
pic().write<Gich_elrsr0>(s->gic_elrsr0);
|
|
|
|
pic().write<Gich_lr<0> >(s->gic_lr[0]);
|
|
|
|
pic().write<Gich_lr<1> >(s->gic_lr[1]);
|
|
|
|
pic().write<Gich_lr<2> >(s->gic_lr[2]);
|
|
|
|
pic().write<Gich_lr<3> >(s->gic_lr[3]);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct Kernel::Virtual_timer
|
|
|
|
{
|
2018-01-24 14:02:35 +01:00
|
|
|
Vm_irq irq { Board::VT_TIMER_IRQ };
|
2015-02-19 14:50:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return virtual timer object of currently executing cpu
|
|
|
|
*
|
|
|
|
* FIXME: remove this when re-designing the CPU (issue #1252)
|
|
|
|
*/
|
|
|
|
static Virtual_timer& timer()
|
|
|
|
{
|
|
|
|
static Virtual_timer timer[NR_OF_CPUS];
|
|
|
|
return timer[Cpu::executing_id()];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Resets the virtual timer, thereby it disables its interrupt
|
|
|
|
*/
|
|
|
|
static void reset()
|
|
|
|
{
|
|
|
|
timer().irq.disable();
|
|
|
|
asm volatile("mcr p15, 0, %0, c14, c3, 1 \n"
|
|
|
|
"mcr p15, 0, %0, c14, c3, 0" :: "r" (0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Save the virtual timer state to VM state
|
|
|
|
*/
|
|
|
|
static void save(Genode::Vm_state *s)
|
|
|
|
{
|
|
|
|
asm volatile("mrc p15, 0, %0, c14, c3, 0 \n"
|
|
|
|
"mrc p15, 0, %1, c14, c3, 1" :
|
|
|
|
"=r" (s->timer_val), "=r" (s->timer_ctrl));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load the virtual timer state from VM state
|
|
|
|
*/
|
2017-10-06 12:02:36 +02:00
|
|
|
static void load(Genode::Vm_state *s)
|
2015-02-19 14:50:27 +01:00
|
|
|
{
|
|
|
|
if (s->timer_irq) timer().irq.enable();
|
|
|
|
|
|
|
|
asm volatile("mcr p15, 0, %0, c14, c3, 1 \n"
|
|
|
|
"mcr p15, 0, %1, c14, c3, 0 \n"
|
|
|
|
"mcr p15, 0, %2, c14, c3, 1" ::
|
|
|
|
"r" (0),
|
|
|
|
"r" (s->timer_val), "r" (s->timer_ctrl));
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-05-19 14:18:40 +02:00
|
|
|
using Vmid_allocator = Genode::Bit_allocator<256>;
|
|
|
|
|
|
|
|
static Vmid_allocator &alloc()
|
|
|
|
{
|
|
|
|
static Vmid_allocator * allocator = nullptr;
|
|
|
|
if (!allocator) {
|
|
|
|
allocator = unmanaged_singleton<Vmid_allocator>();
|
|
|
|
|
|
|
|
/* reserve VM ID 0 for the hypervisor */
|
|
|
|
unsigned id = allocator->alloc();
|
|
|
|
assert (id == 0);
|
|
|
|
}
|
|
|
|
return *allocator;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-02-19 14:50:27 +01:00
|
|
|
Kernel::Vm::Vm(void * const state,
|
|
|
|
Kernel::Signal_context * const context,
|
|
|
|
void * const table)
|
2015-06-29 13:30:35 +02:00
|
|
|
: Cpu_job(Cpu_priority::MIN, 0),
|
2015-05-19 14:18:40 +02:00
|
|
|
_id(alloc().alloc()),
|
2015-02-19 14:50:27 +01:00
|
|
|
_state((Genode::Vm_state * const)state),
|
|
|
|
_context(context),
|
2015-05-19 14:18:40 +02:00
|
|
|
_table(table)
|
|
|
|
{
|
base/core: use references instead of pointers
This patch replaces the former prominent use of pointers by references
wherever feasible. This has the following benefits:
* The contract between caller and callee becomes more obvious. When
passing a reference, the contract says that the argument cannot be
a null pointer. The caller is responsible to ensure that. Therefore,
the use of reference eliminates the need to add defensive null-pointer
checks at the callee site, which sometimes merely exist to be on the
safe side. The bottom line is that the code becomes easier to follow.
* Reference members must be initialized via an object initializer,
which promotes a programming style that avoids intermediate object-
construction states. Within core, there are still a few pointers
as member variables left though. E.g., caused by the late association
of 'Platform_thread' objects with their 'Platform_pd' objects.
* If no pointers are present as member variables, we don't need to
manually provide declarations of a private copy constructor and
an assignment operator to avoid -Weffc++ errors "class ... has
pointer data members [-Werror=effc++]".
This patch also changes a few system bindings on NOVA and Fiasco.OC,
e.g., the return value of the global 'cap_map' accessor has become a
reference. Hence, the patch touches a few places outside of core.
Fixes #3135
2019-01-24 22:00:01 +01:00
|
|
|
affinity(cpu_pool().primary_cpu());
|
2015-02-19 14:50:27 +01:00
|
|
|
Virtual_pic::pic().irq.enable();
|
2017-06-30 12:00:27 +02:00
|
|
|
|
2017-10-06 12:02:36 +02:00
|
|
|
vt_host_context.sp = _cpu->stack_start();
|
2017-06-30 12:00:27 +02:00
|
|
|
vt_host_context.ttbr0 = Cpu::Ttbr0_64bit::read();
|
|
|
|
vt_host_context.ttbr1 = Cpu::Ttbr1_64bit::read();
|
|
|
|
vt_host_context.sctlr = Cpu::Sctlr::read();
|
|
|
|
vt_host_context.ttbcr = Cpu::Ttbcr::read();
|
|
|
|
vt_host_context.mair0 = Cpu::Mair0::read();
|
|
|
|
vt_host_context.dacr = Cpu::Dacr::read();
|
|
|
|
vt_host_context.ip = (addr_t) &kernel;
|
2015-02-19 14:50:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-05-19 14:18:40 +02:00
|
|
|
Kernel::Vm::~Vm() { alloc().free(_id); }
|
|
|
|
|
|
|
|
|
2017-10-06 12:02:36 +02:00
|
|
|
void Kernel::Vm::exception(Cpu & cpu)
|
2015-02-19 14:50:27 +01:00
|
|
|
{
|
|
|
|
Virtual_timer::save(_state);
|
|
|
|
|
|
|
|
switch(_state->cpu_exception) {
|
|
|
|
case Genode::Cpu_state::INTERRUPT_REQUEST:
|
|
|
|
case Genode::Cpu_state::FAST_INTERRUPT_REQUEST:
|
2017-04-28 15:27:26 +02:00
|
|
|
_state->gic_irq = Board::VT_MAINTAINANCE_IRQ;
|
2017-10-06 12:02:36 +02:00
|
|
|
_interrupt(cpu.id());
|
2015-02-19 14:50:27 +01:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
pause();
|
|
|
|
_context->submit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
Virtual_pic::save(_state);
|
|
|
|
Virtual_timer::reset();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-10-06 12:02:36 +02:00
|
|
|
void Kernel::Vm::proceed(Cpu &)
|
2015-02-19 14:50:27 +01:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* the following values have to be enforced by the hypervisor
|
|
|
|
*/
|
2017-10-06 12:02:36 +02:00
|
|
|
_state->vttbr = Cpu::Ttbr_64bit::Ba::masked((Cpu::Ttbr_64bit::access_t)_table);
|
|
|
|
Cpu::Ttbr_64bit::Asid::set(_state->vttbr, _id);
|
2015-02-19 14:50:27 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* use the following report fields not needed for loading the context
|
|
|
|
* to transport the HSTR and HCR register descriptions into the assembler
|
|
|
|
* path in a dense way
|
|
|
|
*/
|
|
|
|
_state->hsr = Cpu::Hstr::init();
|
|
|
|
_state->hpfar = Cpu::Hcr::init();
|
|
|
|
|
|
|
|
Virtual_pic::load(_state);
|
2017-10-06 12:02:36 +02:00
|
|
|
Virtual_timer::load(_state);
|
2015-02-19 14:50:27 +01:00
|
|
|
|
2017-06-30 12:00:27 +02:00
|
|
|
hypervisor_enter_vm(reinterpret_cast<Cpu::Context*>(_state));
|
2015-02-19 14:50:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Vm::inject_irq(unsigned irq)
|
|
|
|
{
|
|
|
|
_state->gic_irq = irq;
|
|
|
|
pause();
|
|
|
|
_context->submit(1);
|
|
|
|
}
|