x86_64: more local and i/o apic configuration

This commit is contained in:
2023-03-20 20:21:44 +00:00
parent 8e9127cd6a
commit a4d850cc03
6 changed files with 71 additions and 11 deletions

View File

@@ -263,3 +263,9 @@ void hook_irq(irq_vector_t vec, irq_hook_t *hook)
queue_t *hook_queue = &irq_hooks[vec - IRQ0];
queue_push_back(hook_queue, &hook->irq_entry);
}
void unhook_irq(irq_vector_t vec, irq_hook_t *hook)
{
queue_t *hook_queue = &irq_hooks[vec - IRQ0];
queue_delete(hook_queue, &hook->irq_entry);
}