From owner-freebsd-usb@FreeBSD.ORG Mon Jan 29 08:22:24 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E72B816A400; Mon, 29 Jan 2007 08:22:24 +0000 (UTC) (envelope-from bel@orel.ru) Received: from mail.orel.ru (relay.orel.ru [89.113.48.6]) by mx1.freebsd.org (Postfix) with ESMTP id 5AF4F13C441; Mon, 29 Jan 2007 08:22:24 +0000 (UTC) (envelope-from bel@orel.ru) Received: from [192.168.99.99] (ford.ct.orel.ru [89.113.48.75]) by mail.orel.ru (8.13.8/8.13.4) with ESMTP id l0T7iHdE025344; Mon, 29 Jan 2007 10:44:21 +0300 (MSK) (envelope-from bel@orel.ru) Message-ID: <45BDA5D1.70507@orel.ru> Date: Mon, 29 Jan 2007 10:44:17 +0300 From: Andrew Belashov Organization: ORIS User-Agent: Thunderbird 1.5 (X11/20060123) MIME-Version: 1.0 To: Hans Petter Selasky References: <200701261551.18485.hselasky@freebsd.org> In-Reply-To: <200701261551.18485.hselasky@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Dr.Web (R) for Mail Servers on mail.orel.ru host X-Antivirus-Code: 100000 X-Zombi-Check: on netra2.orel.ru Cc: freebsd-usb@freebsd.org Subject: Re: New USB stack on non x86 processors X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 08:22:25 -0000 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 -fno-strict-aliasing). Thanks, --bel