From 3f544bd4898383dcd4d7f44517a4e159f8924024 Mon Sep 17 00:00:00 2001 From: dnojiri Date: Thu, 6 Feb 2020 11:31:40 -0800 Subject: Increase VB2_CONTEXT_MAX_SIZE This patch increases VB2_CONTEXT_MAX_SIZE to 384 to accommodate the new secdata_kernel v1.0 in vb2_context. BUG=chromium:1045217 TEST=emerge-hatch depthcharge TEST=make runtests Signed-off-by: dnojiri Change-Id: I1df3b7a4383a45104a05a06a47cec3677dc44005 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2041694 Reviewed-by: Julius Werner Reviewed-by: Joel Kitching --- firmware/2lib/include/2struct.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/2lib/include/2struct.h b/firmware/2lib/include/2struct.h index 3e006ab6..0bfa02dc 100644 --- a/firmware/2lib/include/2struct.h +++ b/firmware/2lib/include/2struct.h @@ -88,10 +88,11 @@ enum vb2_shared_data_status { #define VB2_SHARED_DATA_MAGIC 0x44533256 /* Current version of vb2_shared_data struct */ -#define VB2_SHARED_DATA_VERSION_MAJOR 2 +#define VB2_SHARED_DATA_VERSION_MAJOR 3 #define VB2_SHARED_DATA_VERSION_MINOR 0 -#define VB2_CONTEXT_MAX_SIZE 192 +/* MAX_SIZE should not be changed without bumping up DATA_VERSION_MAJOR. */ +#define VB2_CONTEXT_MAX_SIZE 384 /* * Data shared between vboot API calls. Stored at the start of the work -- cgit v1.2.1