From owner-svn-src-head@FreeBSD.ORG Fri May 17 20:53:15 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EEE11909; Fri, 17 May 2013 20:53:15 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E01AF69C; Fri, 17 May 2013 20:53:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4HKrFDE018085; Fri, 17 May 2013 20:53:15 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4HKrFLi018084; Fri, 17 May 2013 20:53:15 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201305172053.r4HKrFLi018084@svn.freebsd.org> From: Warner Losh Date: Fri, 17 May 2013 20:53:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250753 - head/sys/dev/usb X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 May 2013 20:53:16 -0000 Author: imp Date: Fri May 17 20:53:15 2013 New Revision: 250753 URL: http://svnweb.freebsd.org/changeset/base/250753 Log: For ARM, MIPS, and PowerPC, default to 32-byte alignment, but allow it to be as small as 8. Modified: head/sys/dev/usb/usb_freebsd.h Modified: head/sys/dev/usb/usb_freebsd.h ============================================================================== --- head/sys/dev/usb/usb_freebsd.h Fri May 17 20:12:56 2013 (r250752) +++ head/sys/dev/usb/usb_freebsd.h Fri May 17 20:53:15 2013 (r250753) @@ -56,8 +56,12 @@ #if (!defined(USB_HOST_ALIGN)) || (USB_HOST_ALIGN <= 0) /* Use default value. */ #undef USB_HOST_ALIGN +#if defined(__arm__) || defined(__mips__) || defined(__powerpc__) +#define USB_HOST_ALIGN 32 /* Arm and MIPS need at least this much, if not more */ +#else #define USB_HOST_ALIGN 8 /* bytes, must be power of two */ #endif +#endif /* Sanity check for USB_HOST_ALIGN: Verify power of two. */ #if ((-USB_HOST_ALIGN) & USB_HOST_ALIGN) != USB_HOST_ALIGN #error "USB_HOST_ALIGN is not power of two."