aboutsummaryrefslogtreecommitdiff
path: root/src/include/assert.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-05-09 13:40:23 -0700
committerJulius Werner <jwerner@chromium.org>2019-05-10 21:41:14 +0000
commitef7d89cabe658e7f2951112c50853328988cea98 (patch)
tree29825181a56e73be7c6c9cf3884a82f4f8b1d56a /src/include/assert.h
parent939bfccb3dbf04a0a2f7e15b82db1fdb469b7a73 (diff)
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>
Diffstat (limited to 'src/include/assert.h')
0 files changed, 0 insertions, 0 deletions