summaryrefslogtreecommitdiff
path: root/src/security/vboot/misc.h
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2019-11-26 10:47:35 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-12-02 13:00:36 +0000
commita2962daf6fd1e184b7444feabe3f963a9ba614d7 (patch)
tree1cccbb5e2ec7393d0af72dec741c9b410f686e67 /src/security/vboot/misc.h
parent2317b4f1140821051d8688a95fcfd7e0eedaa773 (diff)
downloadcoreboot-a2962daf6fd1e184b7444feabe3f963a9ba614d7.tar.xz
security/vboot: Remove struct vboot_working_data
After CB:36808, CB:36844 and CB:36845, all fields except buffer_offset were removed from struct vboot_working_data. Since buffer_offset is used to record the offset of the workbuf relative to the whole structure, it is no longer needed. This patch removes the structure, and renames vboot_get_working_data() to vboot_get_workbuf(). BRANCH=none BUG=chromium:1021452 TEST=emerge-nami coreboot Change-Id: I304a5e4236f13b1aecd64b88ca5c8fbc1526e592 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37231 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Joel Kitching <kitching@google.com>
Diffstat (limited to 'src/security/vboot/misc.h')
-rw-r--r--src/security/vboot/misc.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/security/vboot/misc.h b/src/security/vboot/misc.h
index 9f681f6f7f..9dd482e846 100644
--- a/src/security/vboot/misc.h
+++ b/src/security/vboot/misc.h
@@ -23,21 +23,9 @@ struct vb2_context;
struct vb2_shared_data;
/*
- * Stores vboot-related information. selected_region is used by verstage to
- * store the location of the selected slot. buffer is used by vboot to store
- * its work buffer. vb2_context is contained within this work buffer, and is
- * accessible via vboot_get_context() declared below.
- * Keep the struct CPU architecture agnostic as it crosses stage boundaries.
- */
-struct vboot_working_data {
- /* offset of the buffer from the start of this struct */
- uint16_t buffer_offset;
-};
-
-/*
* Source: security/vboot/common.c
*/
-struct vboot_working_data *vboot_get_working_data(void);
+void *vboot_get_workbuf(void);
struct vb2_context *vboot_get_context(void);
/*