Smbios: add struct layout check

This commit is contained in:
李通洲
2024-05-10 22:46:10 +08:00
parent 08a940bfd4
commit fef3100fd7
7 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ typedef struct FFSmbiosHeader
FFSmbiosType Type;
uint8_t Length;
uint16_t Handle;
} FFSmbiosHeader;
} __attribute__((__packed__)) FFSmbiosHeader;
static_assert(sizeof(FFSmbiosHeader) == 4, "FFSmbiosHeader should be 4 bytes");
typedef struct FFRawSmbiosData