OSDev.org

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

All times are UTC - 6 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: question!
PostPosted: Sat Dec 08, 2001 12:00 am 
3 or 4 weeks ago I was asking something, why don't you answer me?


Top
  
 
 Post subject: RE:question!
PostPosted: Sat Dec 08, 2001 12:00 am 
>On 2001-12-08 16:39:31, Stefan wrote:
>3 or 4 weeks ago I was asking something, why don't you answer me?

This question?

I'm in big trouble, I don't understand how IRQ's work.
My question is: Can I handle IRQ's (e.g. IRQ 15, IRQ 16) with interrupts like thows in the IDT?
Does anybody know some good info (good sites or texts) about progamming with IRQ support?
Please help, I need this for my OS!

I didn't answer because I have no good sites about this
kinda thing. However, I do have a text... Protected Mode
Software Architecture, Tom Shanley, MindShare Inc.
ISBN: 0-201-55447-X $41.00 CDN

It's an _EXCELLENT_ book for all things pmode, including
IRQ's. Other than that, search for it on the internet.
You're bound to find some good stuff.

Specifically from your question, you _have_ to handle
IRQ's through interrupts (that's why it's an Interupt
ReQuest!). And yes, through those in the IDT... there
are no other interrupts.

jeff


Top
  
 
 Post subject: RE:question!
PostPosted: Mon Dec 10, 2001 12:00 am 
> I'm in big trouble, I don't understand how IRQ's work.
> My question is: Can I handle IRQ's (e.g. IRQ 15, IRQ 16) with interrupts like thows in the IDT?
> Does anybody know some good info (good sites or texts) about progamming with IRQ support?
> Please help, I need this for my OS!
Yes you can, but first you have to reprogram PIC(Programmable Interrupt Controller)
to change the base addres in IDT from 0x8 to 0x20+8n, because in protected
mode first 32 interrupts vectors used to handle exeptions and stuff.
Aww and you need to write 0x20 in port 0x20 to check interrupt as handled or PIC will
stop reseeving interrupts.
I don't know any sites, but I can throw you some code if you wish (and if I find it :)


Top
  
 
 Post subject: RE:question!
PostPosted: Mon Dec 10, 2001 12:00 am 
> I'm in big trouble, I don't understand how IRQ's work.
> My question is: Can I handle IRQ's (e.g. IRQ 15, IRQ 16) with interrupts like thows in the IDT?
> Does anybody know some good info (good sites or texts) about progamming with IRQ support?
> Please help, I need this for my OS!
Yes you can, but first you have to reprogram PIC(Programmable Interrupt Controller)
to change the base addres in IDT from 0x8 to 0x20+8n, because in protected
mode first 32 interrupts vectors used to handle exeptions and stuff.
Aww and you need to write 0x20 in port 0x20 to check interrupt as handled or PIC will
stop reseeving interrupts.
I don't know any sites, but I can throw you some code if you wish (and if I find it :)


Top
  
 
 Post subject: RE:question!
PostPosted: Mon Dec 10, 2001 12:00 am 
Thanks Jeff, but I have no mony but buy a book!!!
For me, such a book is very expencive. My dad's salar
is about 150$/month. See?


Top
  
 
 Post subject: RE:question!
PostPosted: Mon Dec 10, 2001 12:00 am 
>On 2001-12-10 05:12:43, Stefan wrote:
>Thanks Jeff, but I have no mony but buy a book!!!
>For me, such a book is very expencive. My dad's salar
>is about 150$/month. See?

Well you can start here:
http://www.beyondlogic.org/interrupts/interupt.htm
And then read volume 3 of the Intel Architecture
Software Developer's Manuals. (you did follow the
link in the link section and download that didn't you ?-)

I'd ask someone to but me the Protected Mode book
for christmas or whatever your next major holiday may
be. It's worth it.


Top
  
 
 Post subject: RE:question!
PostPosted: Tue Dec 11, 2001 12:00 am 
Thank you for the link.
I allready read the Intel Manuals (2 times)!


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 78 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