46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
----------------------------------------------------------------------
|
|
Patch name: patch.ne2k-start-bit
|
|
Author: ece lca <ecelca@yahoo.com>
|
|
Date: Wed, 8 Aug 2001 17:53:06 -0700 (PDT)
|
|
RCS Id: $Id: patch.ne2k-start-bit,v 1.3 2001-11-07 14:19:54 bdenney Exp $
|
|
|
|
Detailed description:
|
|
I compiled Bochs on Linux and installed a linux
|
|
in it, but when I ping a machine on my LAN, I get
|
|
packet loss. Sometimes as much as 70% is lost.
|
|
So I read ne2k.cc, Linux 8390 driver and 8390 chip
|
|
specification. I find that 8390 command register START
|
|
bit is misused in ne2k.cc. According to the chip
|
|
specification, even if START=0, the chip does not stop
|
|
working.
|
|
|
|
Bryce messed up version 1.1 of this patch. Version 1.2 should be
|
|
what ecelca@yahoo.com intended.
|
|
|
|
On November 6, 2001 Todd Fries committed this patch in CVS.
|
|
|
|
Patch was created with:
|
|
cvs diff -c
|
|
Apply patch to what version:
|
|
CVS
|
|
Instructions:
|
|
To patch, go to main bochs directory.
|
|
Type "patch -p0 < THIS_PATCH_FILE".
|
|
----------------------------------------------------------------------
|
|
RCS file: /cvsroot/bochs/bochs/iodev/ne2k.cc,v
|
|
retrieving revision 1.19
|
|
diff -u -r1.19 ne2k.cc
|
|
--- iodev/ne2k.cc 2001/08/31 22:02:29 1.19
|
|
+++ iodev/ne2k.cc 2001/09/29 04:31:43
|
|
@@ -1063,7 +1063,8 @@
|
|
|
|
BX_DEBUG(("rx_frame with length %d", io_len));
|
|
|
|
- if ((BX_NE2K_THIS s.CR.start == 0) ||
|
|
+
|
|
+ if ((BX_NE2K_THIS s.CR.stop != 0) ||
|
|
(BX_NE2K_THIS s.page_start == 0) ||
|
|
(BX_NE2K_THIS s.TCR.loop_cntl != 0)) {
|
|
return;
|
|
|