Rev 2455 | Rev 4850 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2455 | Rev 3320 | ||
---|---|---|---|
Line 369... | Line 369... | ||
369 | xchg eax, ebx |
369 | xchg eax, ebx |
370 | call IOAPIC_write |
370 | call IOAPIC_write |
371 | ret |
371 | ret |
372 | endp |
372 | endp |
Line -... | Line 373... | ||
- | 373 | ||
- | 374 | proc disable_irq stdcall, irq_line:dword |
|
- | 375 | mov ebx, [irq_line] |
|
- | 376 | cmp [irq_mode], IRQ_APIC |
|
- | 377 | je .APIC |
|
- | 378 | ||
- | 379 | mov edx, 0x21 |
|
- | 380 | cmp ebx, 8 |
|
- | 381 | jb @F |
|
- | 382 | ||
- | 383 | mov edx, 0xA1 |
|
- | 384 | sub ebx, 8 |
|
- | 385 | @@: |
|
- | 386 | in al, dx |
|
- | 387 | bts eax, ebx |
|
- | 388 | out dx, al |
|
- | 389 | ret |
|
- | 390 | .APIC: |
|
- | 391 | shl ebx, 1 |
|
- | 392 | add ebx, 0x10 |
|
- | 393 | mov eax, ebx |
|
- | 394 | call IOAPIC_read |
|
- | 395 | or eax, 0x10000; bit 16 |
|
- | 396 | xchg eax, ebx |
|
- | 397 | call IOAPIC_write |
|
- | 398 | ret |
|
- | 399 | endp |
|
373 | 400 | ||
374 | align 4 |
401 | align 4 |
Line 375... | Line 402... | ||
375 | pci_irq_fixup: |
402 | pci_irq_fixup: |