aboutsummaryrefslogtreecommitdiff
path: root/lib/libtpm/tpm.code
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2020-01-21 15:01:46 -0500
committerAlexey Kardashevskiy <aik@ozlabs.ru>2020-02-21 14:03:07 +1100
commit8a6b0d7061c5e504be2e378bd691a762307a1805 (patch)
treef54824d7e940d210d312230c590d959a231fd4a7 /lib/libtpm/tpm.code
parentae2e38c3ad59bfebfd35f1f5c1f4636147d67999 (diff)
downloadSLOF-8a6b0d7061c5e504be2e378bd691a762307a1805.zip
SLOF-8a6b0d7061c5e504be2e378bd691a762307a1805.tar.gz
SLOF-8a6b0d7061c5e504be2e378bd691a762307a1805.tar.bz2
tcgbios: Implement menu to clear TPM 2 and activate its PCR banks
Implement a TPM 2 menu and enable the user to clear the TPM and its activate PCR banks. The main TPM menu is activated by pressing the 't' key during firmware startup. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libtpm/tpm.code')
-rw-r--r--lib/libtpm/tpm.code9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libtpm/tpm.code b/lib/libtpm/tpm.code
index 05f4547..b8f5669 100644
--- a/lib/libtpm/tpm.code
+++ b/lib/libtpm/tpm.code
@@ -128,3 +128,12 @@ PRIM(tpm_X2d_measure_X2d_scrtm)
PUSH;
TOS.n = tpm_measure_scrtm();
MIRP
+
+/*******************************************************************/
+/* Firmware API */
+/* SLOF: tpm20-menu ( -- tpm-version ) */
+/* LIBTPM: tpm20_menu() */
+/*******************************************************************/
+PRIM(tpm20_X2d_menu)
+ tpm20_menu();
+MIRP