From fbb52dfa9cf1b38eedc119c84f1f64d5fa7f1fbb Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Thu, 30 Jun 2011 18:13:59 +0800 Subject: 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 Tested-by: Hung-Te Lin --- host/arch/arm/lib/crossystem_arch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c index ecff5abf..2f9f5525 100644 --- a/host/arch/arm/lib/crossystem_arch.c +++ b/host/arch/arm/lib/crossystem_arch.c @@ -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 { -- cgit v1.2.1