Latest bugfix in RTL8169 for today.

git-svn-id: svn://kolibrios.org@1559 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2010-08-06 22:26:00 +00:00
parent cb06c448b9
commit 08ea0b5f68

View File

@ -1141,6 +1141,7 @@ int_handler:
push ax
.check_more:
mov eax, rx_desc.size
mul [tpc.cur_rx]
lea esi, [eax + rx_ring]
@ -1156,7 +1157,7 @@ int_handler:
test eax, SD_RxRES
jnz .rx_return ;;;;; RX error!
push .rx_return
push .check_more
and eax, 0x00001FFF
add eax, -4 ; we dont need CRC
push eax
@ -1164,6 +1165,7 @@ int_handler:
;-------------
; Update stats
add dword [device.bytes_rx], eax
adc dword [device.bytes_rx + 4], 0
inc dword [device.packets_rx]
@ -1209,7 +1211,7 @@ int_handler:
DEBUGF 1,"TX ok!\n"
mov ecx, NUM_TX_DESC
lea esi, [device.tx_ring]
lea esi, [tx_ring]
.txloop:
cmp [esi+tx_desc.buf_soft_addr], 0
jz .maybenext