summaryrefslogtreecommitdiff
path: root/util/nvramtool/coreboot_tables.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvramtool/coreboot_tables.h')
-rw-r--r--util/nvramtool/coreboot_tables.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/nvramtool/coreboot_tables.h b/util/nvramtool/coreboot_tables.h
index 08f0be63fa..22570ac1f6 100644
--- a/util/nvramtool/coreboot_tables.h
+++ b/util/nvramtool/coreboot_tables.h
@@ -74,7 +74,10 @@ static inline struct lb_uint64 pack_lb64(uint64_t value)
}
struct lb_header {
- uint8_t signature[4]; /* LBIO */
+ union {
+ uint8_t signature[4]; /* LBIO */
+ uint32_t signature32;
+ };
uint32_t header_bytes;
uint32_t header_checksum;
uint32_t table_bytes;