Re: How do i fix my keyboard handler?
Posted: Mon Dec 19, 2016 12:08 pm
I'll try that.Octocontrabass wrote:The original question has already been answered, and in the very first reply to this thread. Your keyboard handler doesn't work because the code you copied is supposed to run in response to a keyboard IRQ, but you're trying to run it when the kernel starts (or in a loop).
I've made a new function which my kernel loops, but instead of sending a EOI, it for whatever reason restarts the emulator and then runs the code. If i put this in a loop, it restarts indefinitely.
I'll try to revert this, as it looks like there's actually nothing wrong with my code.
EDIT: Got it. All that's left is somehow remapping IRQ1 and IRQ2 correctly, which is hard to find. The reason it rebooted was beacuse this went in the middle of hardware interrupts, beacuse IBM.