From 626eea2d42af79117879ceb2f6d354634f81aac8 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Sat, 12 Nov 2016 11:09:28 -0800 Subject: vboot: Add new function for logging recovery mode switches BUG=chrome-os-partner:59352 BRANCH=None TEST=Compiles successfully Change-Id: I87cd675ea45a8b05a178cf64119bf5f9d8d218ca Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/17408 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/vboot/vboot_handoff.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vboot') diff --git a/src/vboot/vboot_handoff.c b/src/vboot/vboot_handoff.c index b0bd04ca16..b732b3aaa8 100644 --- a/src/vboot/vboot_handoff.c +++ b/src/vboot/vboot_handoff.c @@ -153,6 +153,10 @@ void vboot_fill_handoff(void) /* needed until we finish transtion to vboot2 for kernel verification */ fill_vboot_handoff(vh, sd); + + /* Log the recovery mode switches if required, before clearing them. */ + log_recovery_mode_switch(); + /* * The recovery mode switch is cleared (typically backed by EC) here * to allow multiple queries to get_recovery_mode_switch() and have -- cgit v1.2.3