Subject: CVS commit: src/sys/dev/usb
To: None <source-changes@NetBSD.org>
From: Steve Woodford <scw@netbsd.org>
List: source-changes
Date: 10/08/2006 11:52:48
Module Name: src
Committed By: scw
Date: Sun Oct 8 11:52:48 UTC 2006
Modified Files:
src/sys/dev/usb: ehcireg.h ohcireg.h uhcireg.h
Log Message:
Add the 'volatile' qualifier to all descriptor fields to prevent the
compiler optimising away or reordering accesses to them.
Fixes ehci(4) on NetBSD/evbarm when using -Os optimisation. It's likely
ohci(4) and uhci(4) are similarly afflicted, so the same changes have
been made there.
Quite how other platforms got away without this for so long is a mystery...
To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 src/sys/dev/usb/ehcireg.h
cvs rdiff -r1.21 -r1.22 src/sys/dev/usb/ohcireg.h
cvs rdiff -r1.17 -r1.18 src/sys/dev/usb/uhcireg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.