mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
For ARM, MIPS, and PowerPC, default to 32-byte alignment, but allow it
to be as small as 8.
This commit is contained in:
parent
e3ed7ff03f
commit
8b18cb1c23
1 changed files with 4 additions and 0 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue