From 587c7450ac8b2f1e99c482d39e4a4b67cd631ee1 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Wed, 20 Mar 2024 16:04:24 +0100 Subject: [PATCH] x86: fsp: add TPM self test --- src/boot_x86_fsp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/boot_x86_fsp.c b/src/boot_x86_fsp.c index d2240950..c1a37364 100644 --- a/src/boot_x86_fsp.c +++ b/src/boot_x86_fsp.c @@ -556,6 +556,12 @@ static void memory_ready_entry(void *ptr) wolfBoot_printf("tpm init failed" ENDLINE); panic(); } + + ret = wolfBoot_tpm_self_test(); + if (ret != 0) { + wolfBoot_printf("tpm self test failed" ENDLINE); + panic(); + } #endif #if (defined(TARGET_x86_fsp_qemu) && defined(WOLFBOOT_MEASURED_BOOT))