How do i fix my keyboard handler?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: How do i fix my keyboard handler?

Post by NunoLava1998 »

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'll try that.
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.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
Post Reply