From owner-freebsd-usb@FreeBSD.ORG Fri Jan 26 15:51:59 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 DFD9D16A401 for ; Fri, 26 Jan 2007 15:51:59 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe09.swip.net [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1EA6C13C489 for ; Fri, 26 Jan 2007 15:51:58 +0000 (UTC) (envelope-from hselasky@freebsd.org) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe09.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 225706323 for freebsd-usb@freebsd.org; Fri, 26 Jan 2007 15:51:50 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 26 Jan 2007 15:51:18 +0100 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261551.18485.hselasky@freebsd.org> Subject: 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: Fri, 26 Jan 2007 15:52:00 -0000 Hi, 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. I've gotten some help debugging this, but if more people want to help, send me a private e-mail, and I will give you the details on the exact problem so far. Is this an indication that we might have to remove -O2 from the kernel compilation flag? --HPS