mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-16 04:47:11 +00:00
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>
This commit is contained in:
committed by
Gerrit
parent
da77e6953c
commit
92951c813d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user