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>
This commit is contained in:
Angel Pons 2020-10-16 01:01:14 +02:00
parent 28d0408409
commit 08de7d6bbd

View file

@ -298,6 +298,7 @@ static void lockdown_intel_txt(void *unused)
*/ */
struct { struct {
struct txt_biosdataregion bdr; struct txt_biosdataregion bdr;
struct txt_bios_spec_ver_element spec;
struct txt_heap_acm_element heap_acm; struct txt_heap_acm_element heap_acm;
struct txt_extended_data_element_header end; struct txt_extended_data_element_header end;
} __packed data = {0}; } __packed data = {0};
@ -350,6 +351,13 @@ static void lockdown_intel_txt(void *unused)
data.bdr.support_acpi_ppi = 0; data.bdr.support_acpi_ppi = 0;
data.bdr.platform_type = 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 */ /* Extended elements - ACM addresses */
data.heap_acm.header.type = HEAP_EXTDATA_TYPE_ACM; data.heap_acm.header.type = HEAP_EXTDATA_TYPE_ACM;
data.heap_acm.header.size = sizeof(data.heap_acm); data.heap_acm.header.size = sizeof(data.heap_acm);