Ok, so first off, Hi! I am new here but have been using osdev's resources for a few weeks now, and it has been an invaluable resource to ease my intense frustration with some things
Anyway, so i have a strange issue, When i boot my os, i am using freedos which i have customized to load my second stage loader as what it thinks is the command interpreter and this works well with a 5 second boot menu. However, After my kernel loads, it then loads its core services such as the gui shell, and various drivers, the input driver for the mouse seems to work fine!- if i do not press a key on the keyboard between turning the pc on and loading its ps/2 driver, however if a key is pressed (say for instance to get past the 5 second delay i have in the boot menu) the mouse still initializes fine and and the keyboard driver works fine as well, but no mouse interrupts!
What could i be not doing correctly when initializing the keyboard and mouse? i have tried resetting the keyboard and mouse at the controller, polling for input bytes from both keyboard and mouse before initializing etc, but still if a key is pressed between pc on and the loading of the mouse driver i do not get any irq 12's.
Have i overlooked something majorly obvious?
Everything is in 32bit pm, multitasking RING0 (no specific ring3 "userland"), also the drivers are pretty much just like normal programs but they emit service functions available to other app's running on the os and register IRQ callbacks with the kernel
Edit:
*Its ok, i resolved my issue, i forgot to clear the interrupt on the keyboard isr... tsk tsk*