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."
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to