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.
hello
I managed to implement the keyboard ISR and i prints the keys entered but the problem is the CPU usage goes to high levels after the first key entered.
here is the ISR:
If you set up your interrupt handler as an interrupt gate in the IDT, rather than a trap gate (look it up!), you don't need the CLI, the CPU will automatically delete the IF for you. And the STI before the IRET is useless anyway, since IRET will pop the flags from stack.
If you set up your interrupt handler as an interrupt gate in the IDT, rather than a trap gate (look it up!), you don't need the CLI, the CPU will automatically delete the IF for you. And the STI before the IRET is useless anyway, since IRET will pop the flags from stack.
indeed i had set it to interrupt gate.
thank you both for the info.