diff options
author | Joel Kitching <kitching@google.com> | 2019-10-23 15:01:37 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-11-15 10:37:13 +0000 |
commit | 2332c7459ebb81c4dd4c3cc8b19beca820e93968 (patch) | |
tree | 78bc571ecc06ec9e5022dfd21670b832f59c20bd /src/security/vboot/bootmode.c | |
parent | d3c58fdc6436b2c4455b07fe764fcae471a65433 (diff) | |
download | coreboot-2332c7459ebb81c4dd4c3cc8b19beca820e93968.tar.xz |
vboot: use vboot persistent context
vb2_context object is now stored on the workbuf as part of
vb2_shared_data. Use vboot's new API functions vb2api_init
and vb2api_relocate to create and move the workbuf.
BUG=b:124141368, chromium:994060
TEST=Build locally
BRANCH=none
Change-Id: I051be1e47bf79b15a1689d49a5d4c031e9363dfa
Signed-off-by: Joel Kitching <kitching@google.com>
Also-Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/1902339
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36300
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Maulik V Vaghela <maulik.v.vaghela@intel.com>
Diffstat (limited to 'src/security/vboot/bootmode.c')
-rw-r--r-- | src/security/vboot/bootmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security/vboot/bootmode.c b/src/security/vboot/bootmode.c index 4625bcdff2..0ab0431f46 100644 --- a/src/security/vboot/bootmode.c +++ b/src/security/vboot/bootmode.c @@ -26,7 +26,7 @@ static int vboot_get_recovery_reason_shared_data(void) { - struct vb2_shared_data *sd = vboot_get_shared_data(); + struct vb2_shared_data *sd = vb2_get_sd(vboot_get_context()); assert(sd); return sd->recovery_reason; } |