Re: [Geekos-devel] defs.h
Status: Pre-Alpha
Brought to you by:
daveho
From: Behrang S. <beh...@ya...> - 2003-05-19 16:17:30
|
Hi Thanks for the information. One more thing... What is the exact job of End_IRQ function implemented in irq.c? I was reading some documents and source code and it was said that to send the EOI command to the PIC we have to send 0x20 to address 0x20 if the irq number is between 0 and 7 and send it to both 0x20 and 0xA0 address if it's something between 8 and 15: if (irq < 8) { Out_Byte(0x20, 0x20); // something like this // as I should use a char // for the second arg... } else { Out_Byte(0x20, 0x20); Out_Byte(0xA0, 0x20); } But the actual code is a little bit more complex. Is that a bug or I have misunderstood something about the EOI and ...? Thanks, Behrang S. __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |