aboutsummaryrefslogtreecommitdiffstats
path: root/src/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/post.c b/src/post.c
index 9ea5620c..0c7b36b1 100644
--- a/src/post.c
+++ b/src/post.c
@@ -28,6 +28,7 @@
#include "output.h" // dprintf
#include "string.h" // memset
#include "util.h" // kbd_init
+#include "tcgbios.h" // tpm_*
/****************************************************************
@@ -220,6 +221,9 @@ maininit(void)
if (threads_during_optionroms())
device_hardware_setup();
+ // Initialize TPM
+ tpm_start();
+
// Run vga option rom
vgarom_setup();
@@ -236,6 +240,9 @@ maininit(void)
interactive_bootmenu();
wait_threads();
+ // Change TPM phys. presence state befor leaving BIOS
+ tpm_leave_bios();
+
// Prepare for boot.
prepareboot();