Use IRQ2 for HPET. #353
Labels
project-kernel
Related to the kernel
status-upstream
Blocked by an upstream bug
todo 🗒️
Created by the todo bot
Idealy, HPET should be using IRQ2 (which seems to be generally wired properly). Unfortunately, qemu has an unfortunate bug where interrupts for IRQ2 gets ignored.
As a workaround, we currently use IRQ16 as the timer IRQ. This is not very portable - but it'll do until we have a proper IRQ allocation scheme.
Upstream bug: https://bugs.launchpad.net/qemu/+bug/1834051
SunriseOS/kernel/src/devices/hpet.rs
Lines 514 to 524 in 4f01071
This issue was generated by todo based on a
TODO
comment in 4f01071 when #348 was merged. cc @roblabla.The text was updated successfully, but these errors were encountered: