blog_os icon indicating copy to clipboard operation
blog_os copied to clipboard

Hardware Interrupts tutorial not working

Open MTRNord opened this issue 2 years ago • 3 comments

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?

MTRNord avatar May 12 '22 11:05 MTRNord

(Code can be seen at https://gitlab.nordgedanken.dev/toy-kernel/toy-kernel/-/commit/37cc6e38c769c73bcce5d41ae40ea554d36e144a )

MTRNord avatar May 12 '22 11:05 MTRNord

AFAIK you can't use the 8259 PIC with UEFI. You need to use the APIC instead if you want UEFI support.

bjorn3 avatar May 12 '22 11:05 bjorn3

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.

MTRNord avatar May 12 '22 11:05 MTRNord

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.

phil-opp avatar Aug 19 '22 15:08 phil-opp