aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-10-06 17:29:03 -0500
committerAaron Durbin <adurbin@gmail.com>2015-10-11 23:55:55 +0000
commitb5a20b29b7a2709b120e3c8258c2f16d9c38b590 (patch)
treef7d2538122d8a16ce730362992454e9a326f6ff0 /src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
parente957832b2a4c880fae15c74b998630d5c5125890 (diff)
vboot: restructure vboot work buffer handling
For the purpose of isolating the work buffer logic the surface area of the API was slimmed down. The vb2_working_data structure is no longer exposed, and the function signatures are updated accordingly. BUG=chrome-os-partner:44827 BRANCH=None TEST=Built and booted glados. Change-Id: If64184a79e9571ee8ef9822cfce1eda20fceee00 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/11818 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/vendorcode/google/chromeos/vboot2/vboot_handoff.c')
-rw-r--r--src/vendorcode/google/chromeos/vboot2/vboot_handoff.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c b/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
index 8e12fdcad0..bf7d6542eb 100644
--- a/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
+++ b/src/vendorcode/google/chromeos/vboot2/vboot_handoff.c
@@ -130,9 +130,8 @@ void vboot_fill_handoff(void)
struct region_device fw_main;
struct vboot_components *fw_info;
size_t metadata_sz;
- struct vb2_working_data *wd = vboot_get_working_data();
- sd = vboot_get_work_buffer(wd);
+ sd = vb2_get_shared_data();
sd->workbuf_hash_offset = 0;
sd->workbuf_hash_size = 0;
@@ -149,10 +148,10 @@ void vboot_fill_handoff(void)
fill_vboot_handoff(vh, sd);
/* Nothing left to do in readonly path. */
- if (vboot_is_readonly_path(wd))
+ if (vboot_is_readonly_path())
return;
- if (vb2_get_selected_region(wd, &fw_main))
+ if (vb2_get_selected_region(&fw_main))
die("No component metadata.\n");
metadata_sz = sizeof(*fw_info);