Adding keyboard input to James Molloy's tutorial kernel
Posted: Sun Aug 03, 2008 8:22 am
Hello,
I recently decided to try and write my own kernel. Having done well in the past following tutorials then eventually going on to do things on my own I decided to follow James Molloy's kernel tutorial. I managed to complete and compile it, and, using some information in Bran's kernel tutorial, tried to add keyboard input, by creating a function called keyboard_handler and tryed to attach (excuse my wording, I'm not an experianced kernel devver as you can guess) it to IRQ 1 with this code:
When I compiled the kernel and created my floppy image, running it done nothing when the keys were pressed. The function works perfecly well - I tested it in a continuous for loop which printed the characters, albeit a few hundred times.
Thanks in advance to anyone who can help.
I recently decided to try and write my own kernel. Having done well in the past following tutorials then eventually going on to do things on my own I decided to follow James Molloy's kernel tutorial. I managed to complete and compile it, and, using some information in Bran's kernel tutorial, tried to add keyboard input, by creating a function called keyboard_handler and tryed to attach (excuse my wording, I'm not an experianced kernel devver as you can guess) it to IRQ 1 with this code:
Code: Select all
register_interrupt_handler(1,keyboard_handler);Thanks in advance to anyone who can help.