New USB stack on non x86 processors

Andrew Belashov bel at
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:

Now the new USB stack works with default optimization options (-O2


More information about the freebsd-usb mailing list