OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 6:25 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re:Free PS/2 mouse code
PostPosted: Sun Feb 20, 2005 6:33 pm 
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?


Top
  
 
 Post subject: Re:Free PS/2 mouse code
PostPosted: Mon Feb 21, 2005 4:34 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
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.

_________________
Image May the source be with you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group