mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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:
parent
780863007d
commit
ec92e9c3df
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user