vboot: Init vb2 work memory area before calling verstage

Otherwise it'll determine some offsets from uninitialized data and hilarity
ensues.

Change-Id: I6a671987857cfd3f3cd6078aebd13dd09fc79020
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10660
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Patrick Georgi
2015-06-25 16:57:57 +02:00
committed by Patrick Georgi
parent 1dc22f5cbc
commit 0d5f27b8bb

View File

@ -90,6 +90,7 @@ static int vboot_active(struct asset *asset)
init_vb2_working_data();
verstage_main();
} else if (verstage_should_load()) {
init_vb2_working_data();
struct prog verstage =
PROG_INIT(ASSET_VERSTAGE,
CONFIG_CBFS_PREFIX "/verstage");