coreboot/src/arch
Wim Vervoorn 1058dd84f0 security/vboot: Removed vboot_prepare from vboot_locator
When prog_locate() is called in the stage VBOOT is starting from and the
image to be loaded is not the target image vboot_prepare() may be called
too early.

To prevent this vboot_prepare() is removed from the vboot_locator
structure. This allows more control over the start of the vboot logic.

To clarify the change the vboot_prepare() has been renamed to
vboot_run_logic() and calls to initialize vboot have been added at the
following places:

postcar_loader: when VBOOT starts in ROMSTAGE
romstage_loader: when VBOOT starts in BOOTBLOCK
ramstage_loader: when VBOOT starts in ROMSTAGE

BUG=N/A
TEST=tested on facebook fbg1701

Change-Id: Id5e8fd78458c09dd3896bfd142bd49c2c3d686df
Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36543
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-11-05 15:03:44 +00:00
..
arm arch/arm: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:04 +00:00
arm64 soc/nvidia/tegra210: Populate _cbmem_top_ptr 2019-11-04 11:40:12 +00:00
mips arch/mips: Pass cbmem_top to ramstage via calling argument 2019-11-04 11:40:25 +00:00
ppc64 arch/ppc64: Pass cbmem_top to ramstage via calling argument 2019-11-04 11:39:25 +00:00
riscv src: Remove unused 'include <string.h>' 2019-10-20 17:19:34 +00:00
x86 security/vboot: Removed vboot_prepare from vboot_locator 2019-11-05 15:03:44 +00:00