From 0d13375a817eae9b359871411fb56c7061ab61dc Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Mon, 18 Mar 2013 16:08:48 +0000 Subject: [PATCH] Fixed RTL8139 driver broken in #3346 git-svn-id: svn://kolibrios.org@3385 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/drivers/RTL8139.asm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kernel/branches/net/drivers/RTL8139.asm b/kernel/branches/net/drivers/RTL8139.asm index 4f85e46ebc..d877de1e44 100644 --- a/kernel/branches/net/drivers/RTL8139.asm +++ b/kernel/branches/net/drivers/RTL8139.asm @@ -543,6 +543,12 @@ reset: set_io REG_MAR4 out dx, eax +; enable Rx/Tx + + mov al, (1 shl BIT_RE) or (1 shl BIT_TE) + set_io REG_COMMAND + out dx, al + ; Rxbuffer size, unlimited dma burst, no wrapping, no rx threshold ; accept broadcast packets, accept physical match packets mov ax, RX_CONFIG @@ -598,13 +604,8 @@ reset: ; Read MAC address call read_mac -; enable Rx/Tx - set_io 0 - mov al, (1 shl BIT_RE) or (1 shl BIT_TE) - set_io REG_COMMAND - out dx, al - ; enable interrupts + set_io 0 set_io REG_IMR mov ax, INTERRUPT_MASK out dx, ax