瀏覽代碼

Master IRQ should be EOIed first, I think.

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
4e14b020a5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/arch/i386/core/pic8259.c

+ 1
- 1
src/arch/i386/core/pic8259.c 查看文件

@@ -46,11 +46,11 @@ static inline void send_nonspecific_eoi ( unsigned int irq ) {
46 46
  */
47 47
 static inline void send_specific_eoi ( unsigned int irq ) {
48 48
 	DBG ( "Sending specific EOI for IRQ %d\n", irq );
49
-	outb ( ( ICR_EOI_SPECIFIC | ICR_VALUE ( irq ) ), ICR_REG ( irq ) );
50 49
 	if ( irq >= IRQ_PIC_CUTOFF ) {
51 50
 		outb ( ( ICR_EOI_SPECIFIC | ICR_VALUE ( CHAINED_IRQ ) ),
52 51
 		       ICR_REG ( CHAINED_IRQ ) );
53 52
 	}
53
+	outb ( ( ICR_EOI_SPECIFIC | ICR_VALUE ( irq ) ), ICR_REG ( irq ) );
54 54
 }
55 55
 
56 56
 /**

Loading…
取消
儲存