This driver installs SMBIOS information for OVMF\r
\r
Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>\r
- Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
#include "SmbiosPlatformDxe.h"\r
\r
+#define TYPE0_STRINGS \\r
+ "EFI Development Kit II / OVMF\0" /* Vendor */ \\r
+ "0.0.0\0" /* BiosVersion */ \\r
+ "02/06/2015\0" /* BiosReleaseDate */\r
//\r
// Type definition and contents of the default Type 0 SMBIOS table.\r
//\r
#pragma pack(1)\r
typedef struct {\r
SMBIOS_TABLE_TYPE0 Base;\r
- UINT8 Strings[];\r
+ UINT8 Strings[sizeof(TYPE0_STRINGS)];\r
} OVMF_TYPE0;\r
#pragma pack()\r
\r
0xFF // UINT8 EmbeddedControllerFirmwareMinorRelease\r
},\r
// Text strings (unformatted area)\r
- "EFI Development Kit II / OVMF\0" // Vendor\r
- "0.0.0\0" // BiosVersion\r
- "02/06/2015\0" // BiosReleaseDate\r
+ TYPE0_STRINGS\r
};\r
\r
\r