summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-07-22 07:28:26 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:15:34 +0000
commit4aea6915a028f57027be38204512a527d9f53891 (patch)
tree8e37f65a85be50d19e0ec373779f5cc48a7bc00c /src/include
parent604295e508208dc7ea11a4ded1b7e66954b25594 (diff)
downloadcoreboot-4aea6915a028f57027be38204512a527d9f53891.tar.xz
arch/x86/smbios: Fix type4 for EDK2
Mark the CPU as enabled and the socket as populated. EDK2 tests these flags before further reading this structure. Change-Id: Ic545bb47c502cb9d2352ba6d43eaed8c97229c02 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43703 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/smbios.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/smbios.h b/src/include/smbios.h
index 8cdd58a828..45c550a270 100644
--- a/src/include/smbios.h
+++ b/src/include/smbios.h
@@ -405,6 +405,11 @@ struct smbios_type4 {
u8 eos[2];
} __packed;
+/* defines for smbios_type4 */
+
+#define SMBIOS_PROCESSOR_STATUS_POPULATED (1 << 6)
+#define SMBIOS_PROCESSOR_STATUS_CPU_ENABLED (1 << 0)
+
/* defines for supported_sram_type/current_sram_type */
#define SMBIOS_CACHE_SRAM_TYPE_OTHER (1 << 0)