summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-16 01:01:14 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-10-22 20:01:35 +0000
commit08de7d6bbd69758db9b0840213590a18933aa185 (patch)
treebb41de2f5fa5c84b2771bb46bbc2ee9f9e3e39b6
parent28d040840998aa616b403fb9325238374d3730b8 (diff)
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 <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46493 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/security/intel/txt/ramstage.c8
1 files changed, 8 insertions, 0 deletions
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);