diff options
author | Quan Xu <quan.xu@intel.com> | 2015-04-30 19:43:04 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-05-21 13:18:45 -0400 |
commit | 67643955c7467781c28c4da1669775d7564dc74a (patch) | |
tree | a3bb541d31c464170f654c9b2432ca56160488e1 /src/tcgbios.c | |
parent | 5aa2a75463e2518de56fccb178b6c62b4fe377d9 (diff) | |
download | seabios-hppa-67643955c7467781c28c4da1669775d7564dc74a.zip seabios-hppa-67643955c7467781c28c4da1669775d7564dc74a.tar.gz seabios-hppa-67643955c7467781c28c4da1669775d7564dc74a.tar.bz2 |
make SeaBios compatible with Xen vTPM.
Signed-off-by: Quan Xu <quan.xu@intel.com>
Diffstat (limited to 'src/tcgbios.c')
-rw-r--r-- | src/tcgbios.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tcgbios.c b/src/tcgbios.c index c837ab6..4cda800 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -23,7 +23,7 @@ #include "std/acpi.h" // RSDP_SIGNATURE, rsdt_descriptor #include "bregs.h" // struct bregs #include "sha1.h" // sha1 - +#include "fw/paravirt.h" // runningOnXen static const u8 Startup_ST_CLEAR[2] = { 0x00, TPM_ST_CLEAR }; static const u8 Startup_ST_STATE[2] = { 0x00, TPM_ST_STATE }; @@ -494,6 +494,8 @@ tpm_start(void) return 0; tpm_acpi_init(); + if (runningOnXen()) + return 0; return tpm_startup(); } |