OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 10:04 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Remapping PIC
PostPosted: Tue Mar 08, 2005 1:52 pm 
Hi,
Can anyone tell me if there is any ASM code to save the old pic settings, so that i can restore the old settings if i need to .

If possible not in c as i am not too good with c . ::)


Thanks in advance.

Crash-n-Burn.


Top
  
 
 Post subject: Re:Remapping PIC
PostPosted: Tue Mar 08, 2005 3:43 pm 
Offline
Member
Member
User avatar

Joined: Sat Oct 23, 2004 11:00 pm
Posts: 1223
Location: Sweden
Have you read: http://www.osdever.net/tutorials/pic.php?the_id=38
http://www.nondot.org/sabre/os/files/Mi ... asheet.pdf

HTH, Christoffer

_________________
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub


Top
 Profile  
 
 Post subject: Re:Remapping PIC
PostPosted: Tue Mar 08, 2005 10:05 pm 
Thanks Bubach,

But what i need to know is how to save the original settings, as my OS can be booted from DOS i have trouble when returning to DOS if i remap the pic's.
I know that it is because of remaping the pic's because if i do not remap them it exit's to DOS fine.

Thanks


Top
  
 
 Post subject: Re:Remapping PIC
PostPosted: Wed Mar 09, 2005 2:29 am 
Offline
Member
Member
User avatar

Joined: Sat Oct 23, 2004 11:00 pm
Posts: 1223
Location: Sweden
I can swear that I read about that when I was about to remap the PICs, but now I can't seem to find anything.. :-\

_________________
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub


Top
 Profile  
 
 Post subject: Re:Remapping PIC
PostPosted: Wed Mar 09, 2005 3:57 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
DOS has IRQ0 at 0x8 and IRQ8 at 0x70 (or 0x78) iirc. So just restore that setting ;)

you can also want to store the initial PIC mask in a variable that you'll restore later ...

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:Remapping PIC
PostPosted: Tue Mar 15, 2005 10:53 am 
You know, this would be great for the wiki! Somebody might have the same problem.


Top
  
 
 Post subject: Re:Remapping PIC
PostPosted: Tue Mar 15, 2005 12:48 pm 
Hi @ all,
Thanks for the replys , As Bubach said i too have seen it on the web but can not find it any were it will turn up when i am looking for somthing els as thins useally do ::)

I am still trying to work through it ???


Top
  
 
 Post subject: Re:Remapping PIC
PostPosted: Tue Mar 15, 2005 5:05 pm 
Gr8---ttt!


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: 0xY, Bing [Bot], DotBot [Bot], iansjack, MichaelPetch, osdev199 and 704 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