Skip to content

Commit

Permalink
fix(kernel: x86: pic): enable cascade irq
Browse files Browse the repository at this point in the history
This IRQ needs to be activated for the IRQ from the slave
chip to be triggered.
  • Loading branch information
d4ilyrun committed Nov 25, 2024
1 parent 7fa7c3e commit f89cf88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/arch/i686/devices/pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void pic_reset()

// Set and enable custom interrupts
log_info("PIC", "Setting up custom IRQs handlers");
pic_enable_irq(IRQ_CASCADE); /* Allow IRQs on slave to be triggered */
pic_enable_irq(IRQ_KEYBOARD);
interrupts_set_handler(PIC_MASTER_VECTOR + IRQ_KEYBOARD,
INTERRUPT_HANDLER(irq_keyboard), NULL);
Expand Down

0 comments on commit f89cf88

Please sign in to comment.