summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-07-20 16:04:45 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:08 -0700
commit4027a8c57ac41208e03a9401cad5603c7831b989 (patch)
tree7cfc3c8371a84642fb3820875e3ec63d52eeddf7 /common
parent64fb065b01004163aef6da0c4237d37c4998c106 (diff)
Make a few files assume a reasonable default if CACHE_LINE_SIZE isn't set.
This change modifies a few files to set a reasonable default, __BIGGEST_ALIGNMENT__, if CACHE_LINE_SIZE isn't set. There's precedence for doing this in a few other places in u-boot, and it's helpful if CACHE_LINE_SIZE isn't easy to determine. BUG=chrome-os-partner:4552 TEST=Built and booted on Alex and Seaboard. Change-Id: Id1fc373a35dd93f28c2c2f5c4bdaff707ff700e9 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://gerrit.chromium.org/gerrit/4699 Reviewed-by: Stefan Reinauer <reinauer@google.com> Tested-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_vbexport_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_vbexport_test.c b/common/cmd_vbexport_test.c
index 6bb0227921b..3cbd1788d8a 100644
--- a/common/cmd_vbexport_test.c
+++ b/common/cmd_vbexport_test.c
@@ -22,6 +22,10 @@
#include <vboot_api.h>
+#ifndef CACHE_LINE_SIZE
+#define CACHE_LINE_SIZE __BIGGEST_ALIGNMENT__
+#endif
+
#define TEST_LBA_START 0
#define TEST_LBA_COUNT 2