summaryrefslogtreecommitdiff
path: root/src/security/vboot/vboot_logic.c
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-06-17 15:22:28 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-07-23 12:07:16 +0000
commit7b10debe2e757e978405d3c0cf446966140febb5 (patch)
tree9d8e9707ea4369b2e7984cc421d8abbbd88e5f9a /src/security/vboot/vboot_logic.c
parent452aaae601a56ad81e7ddf84cc83c8262d80ea73 (diff)
vboot: relocate call to vboot_save_recovery_reason_vbnv
Relocate call to vboot_save_recovery_reason_vbnv and rename vb2_clear_recovery_reason_vbnv for consistency. BUG=b:124141368, b:124192753 TEST=make clean && make test-abuild BRANCH=none Change-Id: I111cc23cf3d4b16fdb058dd395ac17a97f23a53f Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33551 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/security/vboot/vboot_logic.c')
-rw-r--r--src/security/vboot/vboot_logic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/security/vboot/vboot_logic.c b/src/security/vboot/vboot_logic.c
index 62e033a0de..2468f5f19e 100644
--- a/src/security/vboot/vboot_logic.c
+++ b/src/security/vboot/vboot_logic.c
@@ -474,6 +474,9 @@ void verstage_main(void)
if (ENV_ROMSTAGE && CONFIG(VBOOT_STARTS_IN_ROMSTAGE))
vboot_log_and_clear_recovery_mode_switch(0);
+ /* Save recovery reason in case of unexpected reboots on x86. */
+ vboot_save_recovery_reason_vbnv();
+
vboot_finalize_work_context(&ctx);
timestamp_add_now(TS_END_VBOOT);
}