From 0d5f27b8bb77a065a73501f6f5f96f5cd2137f7a Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 25 Jun 2015 16:57:57 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/10660 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/vendorcode/google/chromeos/vboot2/vboot_loader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vendorcode/google') diff --git a/src/vendorcode/google/chromeos/vboot2/vboot_loader.c b/src/vendorcode/google/chromeos/vboot2/vboot_loader.c index cbb5f89bc0..d6e760ac28 100644 --- a/src/vendorcode/google/chromeos/vboot2/vboot_loader.c +++ b/src/vendorcode/google/chromeos/vboot2/vboot_loader.c @@ -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"); -- cgit v1.2.3