Net-branch:

Fixed bug in RTL8139 interrupt handler.

git-svn-id: svn://kolibrios.org@1486 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2010-06-07 18:48:49 +00:00
parent 721a4859b3
commit 7ccd311e15

View File

@ -15,6 +15,7 @@
;; ;; ;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
format MS COFF format MS COFF
API_VERSION equ 0x01000100 API_VERSION equ 0x01000100
@ -341,12 +342,12 @@ proc service_proc stdcall, ioctl:dword
; Fill in the direct call addresses into the struct ; Fill in the direct call addresses into the struct
mov dword [device.reset], reset mov [device.reset], reset
mov dword [device.transmit], transmit mov [device.transmit], transmit
mov dword [device.get_MAC], read_mac mov [device.get_MAC], read_mac
mov dword [device.set_MAC], write_mac mov [device.set_MAC], write_mac
mov dword [device.unload], unload mov [device.unload], unload
mov dword [device.name], my_service mov [device.name], my_service
; save the pci bus and device numbers ; save the pci bus and device numbers
@ -787,6 +788,8 @@ int_handler:
mov esi, RTL8139_LIST mov esi, RTL8139_LIST
mov ecx, [RTL8139_DEV] mov ecx, [RTL8139_DEV]
test ecx, ecx
jz .fail
.nextdevice: .nextdevice:
mov ebx, dword [esi] mov ebx, dword [esi]
@ -800,7 +803,8 @@ int_handler:
test ax , ax test ax , ax
jnz .got_it jnz .got_it
loop .nextdevice dec ecx
jnz .nextdevice
ret ; If no device was found, abort (The irq was probably for a device, not registered to this driver) ret ; If no device was found, abort (The irq was probably for a device, not registered to this driver)