Page 2 of 2

Re:Free PS/2 mouse code

Posted: Sun Feb 20, 2005 6:33 pm
by SANiK
Is it me or must the keyboard interrupt be enabled for the mouse to work?

I also found that in bochs if you hit the keys when the mouse is BEINGinstalled, bochs gives a BIOS PANIC, later on, when the reset button is hit.

Hmmm, strange stuff.

How would one go about fixing these things? IRQ mask?

Re:Free PS/2 mouse code

Posted: Mon Feb 21, 2005 4:34 am
by Pype.Clicker
afaik, the keyboard handler is not required, as long as no key is pressed. Since the same chip will deliver keyboard and mouse signals to the cpu, if a keystroke is pending but noone reads it, no mouse interrupt can occur.

It will be necessary to unmask IRQ2 aswell as mouse IRQ and to acknowledge end-of-interrupt on both master and slave PIC, btw.