mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-17 18:41:22 +00:00
crossystem: fix VbSharedDataHeader size
The content in VbSharedMem should be VbSharedData instead of FMAP.
BUG=chromium-os:17168
TEST=crossystem # seeing correct value
(the test need a u-boot with fix included)
Change-Id: I3d7d1eb2b35c9475c2047e9479cee69464da20b1
Reviewed-on: http://gerrit.chromium.org/gerrit/3436
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
#include "host_common.h"
|
||||
#include "crossystem_arch.h"
|
||||
|
||||
#define CONFIG_LENGTH_FMAP 0x400
|
||||
|
||||
#define offsetof(struct_name, field) ((int) &(((struct_name*)0)->field))
|
||||
|
||||
/* This is used to keep u-boot and kernel in sync */
|
||||
@@ -55,7 +53,7 @@ typedef struct {
|
||||
uint8_t fwid[256];
|
||||
uint8_t frid[256];
|
||||
uint32_t fmap_base;
|
||||
uint8_t shared_data_body[CONFIG_LENGTH_FMAP];
|
||||
uint8_t shared_data_body[VB_SHARED_DATA_REC_SIZE];
|
||||
} __attribute__((packed)) VbSharedMem;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user