summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2019-11-14 11:38:44 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-11-20 13:25:05 +0000
commitea544574d06e8a149c447b35c5e8fba96e61152a (patch)
treea9f9d50f0ab3e9e82576ec70e44001a90c172ce9 /src/lib
parenta0e1e596f894416c9db9eefe5b742cb4fad23a00 (diff)
downloadcoreboot-ea544574d06e8a149c447b35c5e8fba96e61152a.tar.xz
security/vboot: Remove buffer_size from struct vboot_working_data
Since buffer_size is no longer used, remove it from struct vboot_working_data. BRANCH=none BUG=chromium:1021452 TEST=emerge-kukui coreboot Change-Id: Ie770e89b4a45e0ec703d5bbb8fb6a298ce915056 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36844 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/coreboot_table.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index d3576e6a32..241d8e1550 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -227,7 +227,14 @@ static void lb_vboot_workbuf(struct lb_header *header)
vbwb->tag = LB_TAG_VBOOT_WORKBUF;
vbwb->size = sizeof(*vbwb);
vbwb->range_start = (uintptr_t)wd + wd->buffer_offset;
- vbwb->range_size = wd->buffer_size;
+ /*
+ * TODO(chromium:1021452): Since cbmem size of vboot workbuf is now
+ * always a known value, we hardcode the value of range_size here.
+ * Ultimately we'll want to move this to add_cbmem_pointers() below,
+ * but we'll have to get rid of the vboot_working_data struct first.
+ */
+ vbwb->range_size = VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE -
+ wd->buffer_offset;
}
__weak uint32_t board_id(void) { return UNDEFINED_STRAPPING_ID; }