diff --git a/repos/base-hw/src/core/include/spec/x86/pic.h b/repos/base-hw/src/core/include/spec/x86/pic.h index 58f0492b4..dd7c7c71d 100644 --- a/repos/base-hw/src/core/include/spec/x86/pic.h +++ b/repos/base-hw/src/core/include/spec/x86/pic.h @@ -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; /*