aboutsummaryrefslogtreecommitdiff
path: root/src/resume.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2015-03-23 14:22:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-05-21 13:15:56 -0400
commitb310dfa59913149bcb728176fd0fcb52731a97d8 (patch)
tree44459d686d618a60bbd5e4b5f1c1d1dab4d9c674 /src/resume.c
parentdfbc885d622871f8f671b3f07374f922df4d0ec4 (diff)
downloadseabios-hppa-b310dfa59913149bcb728176fd0fcb52731a97d8.zip
seabios-hppa-b310dfa59913149bcb728176fd0fcb52731a97d8.tar.gz
seabios-hppa-b310dfa59913149bcb728176fd0fcb52731a97d8.tar.bz2
Implementation of the TCG BIOS extensions
This patch implements the main part of the TCG BIOS extensions. It provides the following functionality: - initialization of the TCPA ACPI table used for logging of measurements - initialization of the TPM by sending a sequence of commands to it - proper setup of the TPM before the BIOS hands over control to the bootloader - support for S3 resume; BIOS sends TPM_Startup(ST_STATE) to TPM - enable configuration of SeaBIOS to be built with TCGBIOS extensions All TCG BIOS extensions are activated with CONFIG_TCGBIOS. Structures that are needed in subsequent patches are also included in tcgbios.h at this point. The effect of this patch is that it initialized the TPM upon VM start and S3 resume. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/resume.c')
-rw-r--r--src/resume.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resume.c b/src/resume.c
index 1903174..a5465d8 100644
--- a/src/resume.c
+++ b/src/resume.c
@@ -16,6 +16,7 @@
#include "std/bda.h" // struct bios_data_area_s
#include "string.h" // memset
#include "util.h" // dma_setup
+#include "tcgbios.h" // tpm_s3_resume
// Handler for post calls that look like a resume.
void VISIBLE16
@@ -99,6 +100,8 @@ s3_resume(void)
pci_resume();
+ /* resume TPM before we may measure option roms */
+ tpm_s3_resume();
s3_resume_vga();
make_bios_readonly();