blog_os
blog_os copied to clipboard
Hardware Interrupts tutorial not working
Hi I started to implement Hardware Interrupts as described. But neither the timer nor the keyboard handlers get called. I am using uefi by using the newer bootloader crate. Otherwise my kernel follows the tutorial. Any ideas what may be happening or how to debug this?
(Code can be seen at https://gitlab.nordgedanken.dev/toy-kernel/toy-kernel/-/commit/37cc6e38c769c73bcce5d41ae40ea554d36e144a )
AFAIK you can't use the 8259 PIC with UEFI. You need to use the APIC instead if you want UEFI support.
AFAIK you can't use the 8259 PIC with UEFI. You need to use the APIC instead if you want UEFI support.
ah ok. that explains it then :) I will then try to have a look at APIC and/or using bios mode. :) thanks.
This is answered, so I'll close it. I'm still working on the upcoming third edition of the blog, which will feature UEFI booting and use the APIC instead of the legacy PIC for interrupt handling.