From 35c492b629d5589152784d2cc5b1e088010cff83 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 24 Mar 2022 00:10:23 +0100 Subject: sec/intel/txt: Use 'bios_acm_error' variable Use the variable intended for this use. This fixes building with clang. Change-Id: I4ee61fb9533b90ddb1a1592d5d9945761739ddb6 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/63062 Reviewed-by: Angel Pons Reviewed-by: Paul Menzel Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/security/intel/txt/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/intel/txt/logging.c b/src/security/intel/txt/logging.c index 46c594cb05..e3fcb5e274 100644 --- a/src/security/intel/txt/logging.c +++ b/src/security/intel/txt/logging.c @@ -70,7 +70,7 @@ void intel_txt_log_bios_acm_error(void) /* Errors by BIOS ACM or FIT */ if ((txt_error & ACMERROR_TXT_VALID) && (acm_status & ACMERROR_TXT_VALID)) { - intel_txt_log_acm_error(read32((void *)TXT_BIOSACM_ERRORCODE)); + intel_txt_log_acm_error(bios_acm_error); log_txt_error("FIT MICROCODE"); } /* Errors by SINIT */ -- cgit v1.2.3