summaryrefslogtreecommitdiff
path: root/src/vendorcode/google/chromeos
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-06-25 16:57:57 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-06-26 23:30:01 +0200
commit0d5f27b8bb77a065a73501f6f5f96f5cd2137f7a (patch)
tree406c46213cba55d626c36666003272315bcc853b /src/vendorcode/google/chromeos
parent1dc22f5cbc251b84a5f3ed4725ab85aacddbd0ca (diff)
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>
Diffstat (limited to 'src/vendorcode/google/chromeos')
-rw-r--r--src/vendorcode/google/chromeos/vboot2/vboot_loader.c1
1 files changed, 1 insertions, 0 deletions
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");