From 38c388fab57035a2fa71c4493fe2c64e44caaae1 Mon Sep 17 00:00:00 2001 From: "SPraid (simba)" Date: Thu, 17 May 2007 17:24:56 +0000 Subject: [PATCH] rtl8139 fixed git-svn-id: svn://kolibrios.org@504 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/eth_drv/drivers/rtl8139.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/network/eth_drv/drivers/rtl8139.inc b/kernel/trunk/network/eth_drv/drivers/rtl8139.inc index 1bef6c8d26..f9965110b4 100644 --- a/kernel/trunk/network/eth_drv/drivers/rtl8139.inc +++ b/kernel/trunk/network/eth_drv/drivers/rtl8139.inc @@ -354,7 +354,8 @@ rtl8139_reset: add edx, RTL8139_REG_IMR - RTL8139_REG_MPC out dx, ax ; set RxBuffer address, init RX buffer offset, init TX ring - mov eax, rtl8139_rx_buff + mov eax, rtl8139_rx_buff ; simba + sub eax,OS_BASE add edx, RTL8139_REG_RBSTART - RTL8139_REG_IMR out dx, eax ; Indicate that we have successfully reset the card @@ -511,6 +512,7 @@ rtl8139_transmit: and ecx, 3 rep movsb ; set address + sub eax,OS_BASE add edx, RTL8139_REG_TSAD0 - RTL8139_REG_TSD0 out dx, eax ; set size and early threshold