OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 4:18 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Reprogramming the PIC
PostPosted: Thu Feb 07, 2002 6:27 pm 
I heard that if you are making a PMode OS that you should reprogram the PIC. Is this true, and if so why?

Thanks in advance,
K.J.


Top
  
 
 Post subject: Re: Reprogramming the PIC
PostPosted: Thu Feb 07, 2002 7:15 pm 
You must program the pic in order to avoid two interrupts to be on the same number.

Under real mode, hardware interrupts are mapped in range 0->31 if I have a good memory.

Under protected mode, Intel has "reserved" this range for exception.

So you have to re-program the pic to put the hardware interrupts away from Intel's garden.

You just have to change the offset of each PIC.

ROSWELL

PS : Sorry for my english but I'm french.


Top
  
 
 Post subject: Re: Reprogramming the PIC
PostPosted: Thu Feb 07, 2002 7:56 pm 
Okay, so if I don't remap it then I get interrupts that don't work right? If all I want to do is just use the keyboard do I have to remap the PIC?

K.J.


Top
  
 
 Post subject: Re: Reprogramming the PIC
PostPosted: Thu Feb 07, 2002 9:28 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
under real mode you have int 0-7 and 70-78. the common thing to do is remap everything from 0-31.

check the os faq

http://www.mega-tokyo.com/os/os-faq-pics.html#remap_pic

_________________
-- Stu --


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], SemrushBot [Bot] and 334 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