Vote count:
0
I have been following James Molloy's kernel development tutorials and have got through to chapter five, however I am having some issues with my interrupt handler.
Whenever I trigger and interrupt QEMU either resets repeatedly, the screen goes weird and displays blue bars or it appears as if nothing happened (it seems to be fine on odd interrupts but has problems with even ones).
I have uploaded the the source to here.
It also does not register any IRQs (at least not the keyboard - which I have hooked up to a callback which should print to the screen however nothing happens when you press a key).
I think that the problem could be in the bootstrap where the interrupts are cleared BEFORE the kernel main function is called. Moving the cli till after the kernel has no effect.
I have also ruled out it being a problem with my QEMU because JamesM's source code compiles and emulates fine on my machine (I am using a i686-elf cross-compiler.)
Interrupts causing kernel to reset
Aucun commentaire:
Enregistrer un commentaire