hw_x86_64: Only handle masking of I/O APIC IRQs

Ignore toggle requests for vectors not assigned to the I/O APIC.

Fixes #1651
This commit is contained in:
Adrian-Ken Rueegsegger 2015-07-15 15:04:35 +02:00 committed by Christian Helmuth
parent 780863007d
commit ec92e9c3df
1 changed files with 7 additions and 0 deletions

View File

@ -158,6 +158,13 @@ class Genode::Ioapic : public Mmio
*/
void toggle_mask(unsigned const vector, bool const set)
{
/*
* Ignore toggle requests for vectors not handled by the I/O APIC.
*/
if (vector < REMAP_BASE || vector >= REMAP_BASE + IRTE_COUNT) {
return;
}
const unsigned irq = vector - REMAP_BASE;
/*