From 08ea0b5f6818cf2f4c20c8da7a4817c5f1d72463 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Fri, 6 Aug 2010 22:26:00 +0000 Subject: [PATCH] Latest bugfix in RTL8169 for today. git-svn-id: svn://kolibrios.org@1559 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/drivers/RTL8169.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/branches/net/drivers/RTL8169.asm b/kernel/branches/net/drivers/RTL8169.asm index 64dc76ca8a..245bc0f0ec 100644 --- a/kernel/branches/net/drivers/RTL8169.asm +++ b/kernel/branches/net/drivers/RTL8169.asm @@ -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