Skip to content

Commit bf6e81b

Browse files
rizlikdanielinux
authored andcommitted
fsp: boot: deinit TPM before the booting application
1 parent 133479f commit bf6e81b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/boot_x86_fsp_payload.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
#include <x86/linux_loader.h>
4242
#endif /* defined(WOLFBOOT_LINUX_PAYLOAD) */
4343

44+
#if defined(WOLFBOOT_TPM)
45+
#include <tpm.h>
46+
#endif /* WOLFBOOT_TPM */
47+
4448
#if defined(WOLFBOOT_ELF)
4549
#include <elf.h>
4650
#include <multiboot.h>
@@ -118,6 +122,10 @@ void do_boot(const uint32_t *app)
118122
{
119123
struct stage2_parameter *stage2_params;
120124

125+
#ifdef WOLFBOOT_TPM
126+
wolfBoot_tpm2_deinit();
127+
#endif /* WOLFBOOT_TPM */
128+
121129
stage2_params = stage2_get_parameters();
122130
#if defined(WOLFBOOT_LINUX_PAYLOAD)
123131
mptable_setup();

0 commit comments

Comments
 (0)