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>
This commit is contained in:
committed by
Patrick Georgi
parent
2317b4f114
commit
a2962daf6f
@ -22,22 +22,10 @@
|
||||
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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user