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.
Who told you to flush what buffer? In all sensible cases you shouldn't be doing this.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Keyboard interrupt works one time. I get one scancode. I find in google some man with same problem. And there said that if dont flush keyboard buffer the controller keyboard does not send next scancode.
PS2 Keyboard <- use that and remember to send an EOI
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
I had this problem too... you need to actually read the scancode from the keyboard controller in order to get another interrupt (in addition to the EOI). Add an inportb (0x60) to your irq_keyboard function.