summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Wai-Hong Tam <waihong@chromium.org>2011-07-20 17:38:35 +0800
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:05 -0700
commit0d15f5533e2dfb08b10cf62bf5b005eb87dcdb69 (patch)
treec85b509b1f6bc9eeccad724c18f8fd27212ec2a1 /include
parent0b9cc09cdd110912142a3cde0460b53b1853f779 (diff)
CHROMIUM: Better comment to describe the variables in firmware_cache struct.
BUG=none TEST=none Change-Id: I0d2aa9e0b6a0d6390eb2760258d721f32fddefc1 Reviewed-on: http://gerrit.chromium.org/gerrit/4383 Tested-by: Tom Wai-Hong Tam <waihong@chromium.org> Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/vboot/firmware_cache.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/vboot/firmware_cache.h b/include/vboot/firmware_cache.h
index 78e4bb82e1c..df18c86ded3 100644
--- a/include/vboot/firmware_cache.h
+++ b/include/vboot/firmware_cache.h
@@ -23,18 +23,23 @@
typedef struct {
/*
- * These fields are the offsets of firmware data sections,
- * from beginning of firmware storage device.
+ * The offset of the firmware data section from the beginning of
+ * the firmware storage device.
*/
off_t offset;
/*
- * These fields are the sizes of firmware data sections.
+ * The size of the signed firmware data section, which should be
+ * exactly the same size as what is described by the vblock.
+ *
+ * If this size is larger than what was signed (the vblock value),
+ * then VbExHashFirmwareBody() will hash the extra data and compute
+ * a different hash value that does not match.
*/
size_t size;
/*
- * These pointers will point to firmware data bodies loaded by
+ * Pointer to the firmware data section loaded by
* VbExHashFirmwareBody().
*/
uint8_t *buffer;