bootblock: Support normal/fallback mechanism again

Change-Id: I7395e62f6682f4ef123da10ac125127a57711ec6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37760
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki
2019-12-16 16:00:49 +02:00
committed by Patrick Georgi
parent 12b1d7df70
commit b8d575c644
5 changed files with 57 additions and 5 deletions

View File

@ -60,8 +60,13 @@ void run_romstage(void)
vboot_run_logic();
if (prog_locate(&romstage))
goto fail;
if (CONFIG(ARCH_X86) && CONFIG(BOOTBLOCK_NORMAL)) {
if (legacy_romstage_selector(&romstage))
goto fail;
} else {
if (prog_locate(&romstage))
goto fail;
}
timestamp_add_now(TS_START_COPYROM);