New USB stack on non x86 processors
Andrew Belashov
bel at orel.ru
Mon Jan 29 08:22:25 UTC 2007
Hi, Hans!
Hans Petter Selasky wrote:
> If you've got problems getting the new USB stack working on non-x86
> processors, try to disable all compiler optimizations when you compile the
> USB module. I am sorry to say that there is a bug in GCC that prevents some
> parts of the USB code from functioning correctly. And don't ask how many
> hours were wasted debugging this. And yes, the code is plain simple C.
The problem on sparc64 is resolved in /usr/include/machine/endian.h two
months ago:
<http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sparc64/include/endian.h.diff?r1=1.15&r2=1.15.2.1>
Now the new USB stack works with default optimization options (-O2
-fno-strict-aliasing).
Thanks,
--bel
More information about the freebsd-usb
mailing list