[SeaBIOS] [PATCH v2 1/3] tpm: Remove check for working TPM from TPM interrupt handler

Stefan Berger stefanb at us.ibm.com
Mon Nov 30 17:14:17 CET 2015


From: Stefan Berger <stefanb at linux.vnet.ibm.com>

Remove the check for a working TPM from the TPM interrupt handler. This then
allows the individual API calls to return information even if the TPM was not
working correctly. Some API calls will still run into the check.

Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
---
 src/tcgbios.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/tcgbios.c b/src/tcgbios.c
index d1a7f6b..c17d80d 100644
--- a/src/tcgbios.c
+++ b/src/tcgbios.c
@@ -1102,11 +1102,6 @@ tpm_interrupt_handler32(struct bregs *regs)
 
     set_cf(regs, 0);
 
-    if (!has_working_tpm()) {
-        regs->eax = TCG_GENERAL_ERROR;
-        return;
-    }
-
     switch ((enum irq_ids)regs->al) {
     case TCG_StatusCheck:
         if (is_tpm_present() == 0) {
-- 
2.4.3




More information about the SeaBIOS mailing list