Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2007 10:44:17 +0300
From:      Andrew Belashov <bel@orel.ru>
To:        Hans Petter Selasky <hselasky@freebsd.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: New USB stack on non x86 processors
Message-ID:  <45BDA5D1.70507@orel.ru>
In-Reply-To: <200701261551.18485.hselasky@freebsd.org>
References:  <200701261551.18485.hselasky@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45BDA5D1.70507>