Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in tulip.c (netboot 4.5.5)




Hi,

there is a small but important bug in the Netboot Tulip driver.
When building setup frame in function tulip_init_ring the control
don't get the right value:

  txd.buf1addr = &txb[0];
  txd.buf2addr = &txb[0];         /* just in case */
  txd.buf1sz   = 192;             /* setup packet must be 192 bytes */
  txd.buf2sz   = 0;
- txd.control  = 0x020;           /* setup packet */
+ txd.control  = 0x028;           /* setup packet + TER */
  txd.status   = 0x80000000;      /* give ownership to device */

The right value of txd.control is 0x028, for setting TER tag (end of
transmission buffer list. Without this, sometimes the tulip card may
read data after the transmission buffer, interpreting them as buffers,
as long as there is a status word with the highest bit set to 1.

Frank
-- 
Frank Mehnert
## Dept. of Computer Science, Dresden University of Technology, Germany ##
## E-Mail: fm3@os.inf.tu-dresden.de    http://os.inf.tu-dresden.de/~fm3 ##
===========================================================================
This Mail was sent to netboot mailing list by:
Frank Mehnert <fm3@os.inf.tu-dresden.de>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.