coreboot-kgpe-d16/src/security/vboot
Julius Werner ef7d89cabe vboot: Make vboot_logic_executed() a bit more precise
This patch adds another check to vboot_logic_executed() to make sure we
only do a runtime check for verstage_should_load() if
CONFIG_VBOOT_RETURN_FROM_VERSTAGE is enabled. That's the only case where
the stage that's loading the verstage can execute after verification has
run (because the verstage will return to it when it's done). In the
other case, the stage that loads verstage really just loads it and will
never do anything again after hand-off, so it's guaranteed to always
execute before verification.

This change may allow extra dead-code elimination in some cases.

Change-Id: I7019b6f7b0acfbf0a8173914b53364751b08f2cf
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32714
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2019-05-10 21:41:14 +00:00
..
antirollback.h vboot: include vb2_sha.h when required 2019-05-09 06:32:44 +00:00
bootmode.c vboot: specify NEED_VB20_INTERNALS when needed 2019-04-29 12:24:17 +00:00
common.c src: Use include <reset.h> when appropriate 2019-03-29 20:00:20 +00:00
gbb.c vboot: remove use of GoogleBinaryBlockHeader 2019-05-06 12:40:31 +00:00
gbb.h vboot: remove use of GoogleBinaryBlockHeader 2019-05-06 12:40:31 +00:00
Kconfig vboot: refactor OPROM code 2019-04-30 21:47:25 +00:00
Makefile.inc security/vboot: Add measured boot mode 2019-02-25 22:29:16 +00:00
misc.h vboot: refactor OPROM code 2019-04-30 21:47:25 +00:00
mrc_cache_hash_tpm.c
secdata_mock.c
secdata_tpm.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
symbols.h security/tpm: Fix TCPA log feature 2019-03-07 12:47:01 +00:00
vbnv.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
vbnv.h
vbnv_cmos.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
vbnv_ec.c
vbnv_flash.c src: include <assert.h> when appropriate 2019-04-23 10:01:36 +00:00
vbnv_layout.h
vboot_common.c vboot: remove use of VbInitParams 2019-05-09 06:31:57 +00:00
vboot_common.h vboot: remove use of VbInitParams 2019-05-09 06:31:57 +00:00
vboot_crtm.c src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
vboot_crtm.h src: Drop unused 'include <cbfs.h>' 2019-03-19 17:14:39 +00:00
vboot_handoff.c vboot: communicate display requirements with vb2api_fw_phase1 2019-05-09 06:32:26 +00:00
vboot_loader.c vboot: Make vboot_logic_executed() a bit more precise 2019-05-10 21:41:14 +00:00
vboot_logic.c vboot: communicate display requirements with vb2api_fw_phase1 2019-05-09 06:32:26 +00:00
verstage.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00