fix: irq manager handle controller
Enable/disable hardware interrupts in the IRQ's controller through IRQ manager.
This commit is contained in:
@@ -64,6 +64,7 @@ bool irq_manager::enable(irq_t irq) {
|
||||
auto* entry = at(irq);
|
||||
if (entry == nullptr) return false;
|
||||
entry->enabled = true;
|
||||
entry->controller->enable(entry->hwirq);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -71,6 +72,7 @@ bool irq_manager::disable(irq_t irq) {
|
||||
auto* entry = at(irq);
|
||||
if (entry == nullptr) return false;
|
||||
entry->enabled = false;
|
||||
entry->controller->disable(entry->hwirq);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user