summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/2lib/include/2constants.h')
-rw-r--r--firmware/2lib/include/2constants.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/2lib/include/2constants.h b/firmware/2lib/include/2constants.h
index 8560d0de..b2abd4ab 100644
--- a/firmware/2lib/include/2constants.h
+++ b/firmware/2lib/include/2constants.h
@@ -66,9 +66,9 @@
* wb.size = sizeof(buf);
*/
-/* We might get away with using __alignof__(void *), but since GCC defines a
- * macro for us we'll be safe and use that. */
-#define VB2_WORKBUF_ALIGN __BIGGEST_ALIGNMENT__
+/* We want consistent alignment across all architectures.
+ 8-byte should work for all of them. */
+#define VB2_WORKBUF_ALIGN 8
/* Maximum length of a HWID in bytes, counting terminating null. */
#define VB2_GBB_HWID_MAX_SIZE 256