Subject: CVS commit: [netbsd-2-0] src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 04/18/2004 02:23:41
Module Name:	src
Committed By:	jmc
Date:		Sun Apr 18 02:23:41 UTC 2004

Modified Files:
	src/sys/dev/ic [netbsd-2-0]: wdcvar.h

Log Message:
Pullup rev 1.56 (requested by bouyer in ticket #149)

Make wdc_channel->ch_flags volatile, and cast it to (void *) when used
in tsleep()/wakeup() to appease gcc. Otherwise, the ch_flags value may
be cached in a register in atabus_thread(), and when it sets the WDCF_TH_RUN
bit after tsleep() it may loose loose the changes made by an interrupt handler
or another thread.


To generate a diff of this commit:
cvs rdiff -r1.55 -r1.55.2.1 src/sys/dev/ic/wdcvar.h

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