Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: enami tsugutomo <enami@netbsd.org>
List: source-changes
Date: 04/05/2004 22:33:08
Module Name:	src
Committed By:	enami
Date:		Mon Apr  5 22:33:08 UTC 2004

Modified Files:
	src/sys/dev/ic: com.c

Log Message:
Fix race condition introduced in rev 1.189; after the change, if there is
THRE interrupt occurs between the LSR read and IIR read, we won't see the
LSR_TXRDY bit when testing it in the variable `lsr' and we don't interrupted
again (as the corresponding bit in the IIR is cleared by reading, except
for some broken device).

Tested by Matthias Scheler and me, reviewed by Allen Briggs.
Closes PR#25010.


To generate a diff of this commit:
cvs rdiff -r1.224 -r1.225 src/sys/dev/ic/com.c

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