forked from KolibriOS/kolibrios
PCNET32: Correctly handle interrupts when more then one device is loaded.
git-svn-id: svn://kolibrios.org@5617 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b583ff5953
commit
d8d75b5cf6
@ -679,9 +679,7 @@ probe:
|
|||||||
call [ebx + device.write_bcr]
|
call [ebx + device.write_bcr]
|
||||||
|
|
||||||
mov ecx, CSR_DMACTL
|
mov ecx, CSR_DMACTL
|
||||||
call [ebx + device.read_csr]
|
; call [ebx + device.read_csr]
|
||||||
; and eax, 0xc00
|
|
||||||
; or eax, 0xc00
|
|
||||||
mov eax, 0xc00
|
mov eax, 0xc00
|
||||||
call [ebx + device.write_csr]
|
call [ebx + device.write_csr]
|
||||||
|
|
||||||
@ -1090,8 +1088,7 @@ int_handler:
|
|||||||
call [ebx + device.read_csr] ; get IRQ reason
|
call [ebx + device.read_csr] ; get IRQ reason
|
||||||
call [ebx + device.write_csr] ; write it back to ACK
|
call [ebx + device.write_csr] ; write it back to ACK
|
||||||
pop ecx
|
pop ecx
|
||||||
;;; and ax, CSR_RINT or CSR_TINT
|
test ax, CSR_RINT or CSR_TINT
|
||||||
test ax, ax
|
|
||||||
jnz .got_it
|
jnz .got_it
|
||||||
.continue:
|
.continue:
|
||||||
add esi, 4
|
add esi, 4
|
||||||
|
Loading…
Reference in New Issue
Block a user