From 73e5eb38821d693244f841ce4f0a14546e5b6361 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Mon, 26 Jan 2015 12:18:25 -0800 Subject: vboot2: fix alignment issues on 32-bit architectures We were assuming 8-byte alignment for buffers. That's not true on 32-bit architectures. We should make the alignment requirements explicit (and correct) for all architectures. BUG=chromium:452179 BRANCH=ToT CQ-DEPEND=CL:243380 TEST=manual USE=vboot2 FEATURES=test emerge-x86-alex vboot_reference Change-Id: I120f23e9c5312d7c21ff9ebb6eea2bac1e430e37 Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/243362 Reviewed-by: Randall Spangler --- tests/vb2_misc_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/vb2_misc_tests.c') diff --git a/tests/vb2_misc_tests.c b/tests/vb2_misc_tests.c index 3dcb1dad..437b247f 100644 --- a/tests/vb2_misc_tests.c +++ b/tests/vb2_misc_tests.c @@ -16,7 +16,7 @@ /* Common context for tests */ static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] - __attribute__ ((aligned (16))); + __attribute__ ((aligned (VB2_WORKBUF_ALIGN))); static struct vb2_context cc; static struct vb2_shared_data *sd; -- cgit v1.2.1