Free PS/2 mouse code

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.
SANiK

Re:Free PS/2 mouse code

Post 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?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Free PS/2 mouse code

Post 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.
Post Reply