Re: [Geekos-devel] defs.h
Status: Pre-Alpha
Brought to you by:
daveho
From: Sergey L. <ioa...@ya...> - 2003-05-21 15:55:07
|
Sounds right. i did try that, everything seems working. --- Behrang Saeedzadeh <beh...@ya...> wrote: > 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 ); > } > } __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |