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

Modified Files:
	src/sys/dev/ata [netbsd-2-0]: ata.c

Log Message:
Pullup rev 1.28 (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.27 -r1.27.2.1 src/sys/dev/ata/ata.c

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