Page 1 of 1
Do I HAVE to use interrupts for keyboard input?
Posted: Mon Jun 11, 2012 2:05 am
by d2alphame
Don't know where exactly this question should go so i decided on a new topic under "OS Development"
HELP! Do I HAVE to use interrupts (GDT, IDT stuffs) in order to read keyboard input in 64 bits mode? If I don't HAVE to, then what work-arounds are available?
Re: Do I HAVE to use interrupts for keyboard input?
Posted: Mon Jun 11, 2012 2:17 am
by bluemoon
While it's possible to poll the IO port for PS/2 keyboard input (not work for USB), I can't imagine doing 64bit kernel without a working IDT, you will make yourself crazy debugging exceptions. And I'm sure you need a GDT to switch from compatibility mode to long mode.
Re: Do I HAVE to use interrupts for keyboard input?
Posted: Mon Jun 11, 2012 2:30 am
by Solar
You don't want to poll the keyboard. Actually, you don't want to poll anything. That's why interrupts were invented.
What is your reason for wanting to avoid interrupts? If you think they're too difficult for you, be notified that few things in OS development are much simpler.
Re: Do I HAVE to use interrupts for keyboard input?
Posted: Mon Jun 11, 2012 6:07 am
by turdus
No, you don't HAVE to.
You should spend more time with learning before you start OS development.
Re: Do I HAVE to use interrupts for keyboard input?
Posted: Mon Jun 11, 2012 6:32 am
by Love4Boobies
If your problem is truly that you don't understand interrupts, why don't you ask for clarifications instead of asking how to avoid them? If your problem is with descriptor tables, then ask about that. Either way, don't pick to easy way just because you're too lazy to get informed.
Re: Do I HAVE to use interrupts for keyboard input?
Posted: Wed Jun 13, 2012 3:15 am
by d2alphame
Love4Boobies wrote:If your problem is truly that you don't understand interrupts, why don't you ask for clarifications instead of asking how to avoid them? If your problem is with descriptor tables, then ask about that. Either way, don't pick to easy way just because you're too lazy to get informed.
siiiiggghh ok, so u caught me (*grinning ear to ear*) - and I do understand interrupts... but those little monsters they call descriptor tables...? sheeesh
Alright next topic, Descriptor Tables it shall be!!!