diff options
author | Matt Delco <delco@google.com> | 2019-03-05 16:45:06 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-20 19:51:15 -0700 |
commit | 7a748886003bad0a8971ca17d23f6641bc05bf59 (patch) | |
tree | d50b11490f88a58fdca55f49521c758a8256e9fe /tests | |
parent | 45e420b83313d7217938737a6b7233d6c1097b90 (diff) | |
download | vboot-7a748886003bad0a8971ca17d23f6641bc05bf59.tar.gz |
firmware/lib: commit nvram before running legacy
vb2_run_altfw() can jump to run a legacy payload, so this change
adds a call to vb2_nv_commit() to commit any pending changes
to nvram before making the jump.
The call to commit requires a vb2_context, so the majority of this
change is to plumb this context through various functions.
BUG=b:124358784
BRANCH=None
TEST=local compile. Tested with a later change that helps confirm
that a pending nvram change is written before jumping.
Change-Id: Ib32980527aa07357d62dd695a6ff479e8c918cf8
Signed-off-by: Matt Delco <delco@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1504757
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions