From 08de7d6bbd69758db9b0840213590a18933aa185 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 16 Oct 2020 01:01:14 +0200 Subject: sec/intel/txt: Add and fill in BIOS Specification info This is not critical to function, but is nice to have. Change-Id: Ieb5f41f3e4c5644a31606434916c35542d35617a Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/46493 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/security/intel/txt/ramstage.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/security') diff --git a/src/security/intel/txt/ramstage.c b/src/security/intel/txt/ramstage.c index 8d9f5d9b3c..5d0d1217fa 100644 --- a/src/security/intel/txt/ramstage.c +++ b/src/security/intel/txt/ramstage.c @@ -298,6 +298,7 @@ static void lockdown_intel_txt(void *unused) */ struct { struct txt_biosdataregion bdr; + struct txt_bios_spec_ver_element spec; struct txt_heap_acm_element heap_acm; struct txt_extended_data_element_header end; } __packed data = {0}; @@ -350,6 +351,13 @@ static void lockdown_intel_txt(void *unused) data.bdr.support_acpi_ppi = 0; data.bdr.platform_type = 0; + /* Fill in the version of the used TXT BIOS Specification */ + data.spec.header.type = HEAP_EXTDATA_TYPE_BIOS_SPEC_VER; + data.spec.header.size = sizeof(data.spec); + data.spec.ver_major = 2; + data.spec.ver_minor = 1; + data.spec.ver_revision = 0; + /* Extended elements - ACM addresses */ data.heap_acm.header.type = HEAP_EXTDATA_TYPE_ACM; data.heap_acm.header.size = sizeof(data.heap_acm); -- cgit v1.2.3