Re: [Geekos-devel] defs.h
Status: Pre-Alpha
Brought to you by:
daveho
From: Behrang S. <beh...@ya...> - 2003-05-19 17:19:33
|
I know that there are two PICs installed on ATs and beyond... what I want to say is that the binary representation of EOI is 0x20 so the End_IRQ should be something like this: void End_IRQ( struct Interrupt_State* state ) { int irq = state->intNum - FIRST_EXTERNAL_INT; short int EOI = 0x20; if ( irq < 8 ) { // Specific EOI to master PIC Out_Byte( 0x20, EOI ); } else { // Specific EOI to slave PIC, then to master (cascade line) Out_Byte( 0xA0, EOI ); Out_Byte( 0x20, EOI ); } } Any suggestions? __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |