Page 1 of 1

IRQs above IRQ 0x0F?

Posted: Sun Oct 18, 2009 6:53 pm
by iocoder
Hello All!
Do any one know how to handle IRQs above 0x0F? like IRQ16 and IRQ17...
I know that we can handle IRQs 0x0 to 0x7 through PIC1 and IRQs 0x8 to 0xF through PIC2 but what about
other IRQs?
In my computer, IDE Driver that is responsible for Serial ATA use IRQ 19 and i wanna handle her with an entry in IDT.
Thanks and Regards.

Re: IRQs above IRQ 0x0F?

Posted: Sun Oct 18, 2009 6:59 pm
by neon
Look into using the APIC

Re: IRQs above IRQ 0x0F?

Posted: Mon Oct 19, 2009 4:10 am
by iocoder
Thank you a lot neon for your reply, but i had read about APIC before and i think it is used in multi-processor systems, my operating system is not as this complix and even my real computer contains only a single intel processor!
Isn't there any other way to handle PCI IRQs?
Also, I don't wanna share one IRQ between more than device, so i reconfigure PCI to interrupt numbers above 15, and PICs can't handle them.
Thank you a lot and regards.

Re: IRQs above IRQ 0x0F?

Posted: Mon Oct 19, 2009 4:16 am
by AJ
Hi,

The APIC's can be present even on single CPU systems and of course you can use the on SMP systems even if you only plan to use one core of one CPU. In fact, on most modern systems I believe that the legacy PIC's are actually emulated by the IO APIC.

If you want non-overlapping IRQ's which utilise the higher vectors, you need to use the APIC. Note that if you purely go down this route, you won't be able to support older chipsets without the IO APIC...

Cheers,
Adam

Re: IRQs above IRQ 0x0F?

Posted: Mon Oct 19, 2009 4:19 am
by qw
If I understand correctly, the simple fact that there is an IRQ 19 implies that there is an APIC.

Re: IRQs above IRQ 0x0F?

Posted: Mon Oct 19, 2009 4:23 am
by iocoder
Yes, Yes you are all right, i'm gonna using LAPIC and I/O APIC. thanks all and regards.