summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2012-08-27 14:18:31 +0800
committerGerrit <chrome-bot@google.com>2012-08-27 18:40:01 -0700
commit92951c813dc416c24d8a9eda39d037f46baeb077 (patch)
tree51c1c6b8d8d571f867048a2f2b6c18d7589d0cdf
parentda77e6953c96f9bb52a04dc32b337066144879aa (diff)
downloadvboot-92951c813dc416c24d8a9eda39d037f46baeb077.tar.gz
Change FMAP search stride from 4-byte to 64-byte.
The FMAP requires to be aligned at 64-byte. Searchin at 4-byte could lead bug if a designated FMAP is located at 4-byte address. BUG=chrome-os-partner:13143, TEST=Tested in CL https://gerrit.chromium.org/gerrit/#/c/31436/ BRANCH=link,snow Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org> Change-Id: Ib7f36dc89d7d2763b1a72b641433d45bec6c2bef Reviewed-on: https://gerrit.chromium.org/gerrit/31442 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Ready: Yung-Chieh Lo <yjlou@chromium.org> Tested-by: Yung-Chieh Lo <yjlou@chromium.org>
-rw-r--r--host/include/fmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/include/fmap.h b/host/include/fmap.h
index 7da2dd90..e8ab9998 100644
--- a/host/include/fmap.h
+++ b/host/include/fmap.h
@@ -14,7 +14,7 @@
#define FMAP_NAMELEN 32
#define FMAP_SIGNATURE "__FMAP__"
#define FMAP_SIGNATURE_SIZE 8
-#define FMAP_SEARCH_STRIDE 4
+#define FMAP_SEARCH_STRIDE 64
typedef struct _FmapHeader {
char fmap_signature[FMAP_SIGNATURE_SIZE]; /* avoiding endian issues */
uint8_t fmap_ver_major;