coreboot/src/security
Yu-Ping Wu aeb652a4a0 security/vboot: Remove selected_region from struct vboot_working_data
Since we already have pre-RAM cache for FMAP (CB:36657), calling
load_firmware() multiple times is no longer a problem. This patch
replaces vboot_get_selected_region() usage with vboot_locate_firmware(),
which locates the firmware by reading from the CBMEM cache.

In addition, returning false from vboot_is_slot_selected() implies the
recovery path was requested, i.e., vb2_shared_data.recovery_reason was
set. Therefore, we simply remove the vboot_is_slot_selected() check from
vboot_check_recovery_request().

BRANCH=none
BUG=chromium:1021452
TEST=emerge-kukui coreboot

Change-Id: I27cb1a2175beb189053fc3e44b17b60aba474bb0
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36845
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2019-11-20 13:26:17 +00:00
..
intel security/intel: Hide Intel submenu when INTEL TXT is disabled 2019-11-14 16:00:45 +00:00
memory include: Make stdbool.h a separate file 2019-11-18 22:47:13 +00:00
tpm security/tpm: Add a Kconfig to disregard INVALID_POSTINIT on startup 2019-10-17 15:07:31 +00:00
vboot security/vboot: Remove selected_region from struct vboot_working_data 2019-11-20 13:26:17 +00:00
Kconfig security/intel: Add TXT infrastructure 2019-09-02 04:52:04 +00:00
Makefile.inc security/intel: Add TXT infrastructure 2019-09-02 04:52:04 +00:00