Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Rafal Boni <rafal@netbsd.org>
List: source-changes
Date: 06/07/2001 15:20:43
Module Name:	syssrc
Committed By:	rafal
Date:		Thu Jun  7 12:20:43 UTC 2001

Modified Files:
	syssrc/sys/arch/sgimips/hpc: if_sq.c

Log Message:
Fix a deadlock in the tx code -- the code checked the DMA status before
sync'ing the descriptor, leading to a race where the packet could complete
after the DMA check but before the sync of the descriptor, sending the code
into unknown territory and the DMA engine into space.  Also, fix a bug with
spurious watchdog resets going off due to the if_timer not always being set
on transmit.

Finally, clean up use of hardcoded magic numbers, get them from hpcreg.h
when possible.


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/sgimips/hpc/if_sq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.