summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2011-06-30 18:13:59 +0800
committerHung-Te Lin <hungte@chromium.org>2011-06-30 03:52:51 -0700
commitfbb52dfa9cf1b38eedc119c84f1f64d5fa7f1fbb (patch)
tree132e8ca30174a89b87864a7d989e16ee00ac6d88
parenta7b9481f343fb4a19b5a5ed44c2fda2c59547e84 (diff)
downloadvboot-fbb52dfa9cf1b38eedc119c84f1f64d5fa7f1fbb.tar.gz
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>
-rw-r--r--host/arch/arm/lib/crossystem_arch.c4
1 files changed, 1 insertions, 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 {