mythos
mythos copied to clipboard
Fix IOAPIC support
Currently, the bochs console is spammed with "[IOAPIC] vector 0 stuck?" which is triggered if bochs is unable to deliver an interrupt 5 times. This is because the destination and interrupt vector is not set up correctly.
After fixing this, the test cases in the init app will not complete in either qemu and bochs with IRQ2 (0x23 on LAPIC) not masked. In qemu, masking it after the first interrupt is enough. In bochs, only disabling it in initialization works. Not tested on real HW.