summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/vboot_struct.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/include/vboot_struct.h b/firmware/include/vboot_struct.h
index 849d4b2f..9ed80dd2 100644
--- a/firmware/include/vboot_struct.h
+++ b/firmware/include/vboot_struct.h
@@ -317,6 +317,13 @@ typedef struct VbSharedDataHeader {
#define VB_SHARED_DATA_HEADER_SIZE_V1 1072
#define VB_SHARED_DATA_HEADER_SIZE_V2 1096
+_Static_assert(VB_SHARED_DATA_HEADER_SIZE_V1
+ == offsetof(VbSharedDataHeader, recovery_reason),
+ "VB_SHARED_DATA_HEADER_SIZE_V1 incorrect");
+
+_Static_assert(VB_SHARED_DATA_HEADER_SIZE_V2 == sizeof(VbSharedDataHeader),
+ "VB_SHARED_DATA_HEADER_SIZE_V2 incorrect");
+
#define VB_SHARED_DATA_VERSION 2 /* Version for struct_version */
#ifdef __cplusplus