ef7d89cabe
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> |
||
---|---|---|
.. | ||
antirollback.h | ||
bootmode.c | ||
common.c | ||
gbb.c | ||
gbb.h | ||
Kconfig | ||
Makefile.inc | ||
misc.h | ||
mrc_cache_hash_tpm.c | ||
secdata_mock.c | ||
secdata_tpm.c | ||
symbols.h | ||
vbnv.c | ||
vbnv.h | ||
vbnv_cmos.c | ||
vbnv_ec.c | ||
vbnv_flash.c | ||
vbnv_layout.h | ||
vboot_common.c | ||
vboot_common.h | ||
vboot_crtm.c | ||
vboot_crtm.h | ||
vboot_handoff.c | ||
vboot_loader.c | ||
vboot_logic.c | ||
verstage.c |