diff options
author | Luigi Semenzato <semenzato@google.com> | 2010-08-31 14:31:30 -0700 |
---|---|---|
committer | Luigi Semenzato <semenzato@google.com> | 2010-08-31 14:31:30 -0700 |
commit | 3da063e3f7612464a41a4c9b2b31fb7eade57a13 (patch) | |
tree | a888ba0ce2b791043baa5a5d1834d801888f35b4 /utility | |
parent | 377557fcb260c9b41abc36ebba5759336436e59c (diff) | |
download | vboot-3da063e3f7612464a41a4c9b2b31fb7eade57a13.tar.gz |
Add resume command (TPM_Startup(ST_STATE))
Change-Id: Ia85c3cdbcb74c6cd8e7bd53c51eaccc98b13677e
BUG=
TEST=
Review URL: http://codereview.chromium.org/3232006
Diffstat (limited to 'utility')
-rw-r--r-- | utility/tlcl_generator.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/utility/tlcl_generator.c b/utility/tlcl_generator.c index 89d15d6f..96a23dd1 100644 --- a/utility/tlcl_generator.c +++ b/utility/tlcl_generator.c @@ -213,7 +213,7 @@ Command* BuildPPLockCommand(void) { } Command* BuildStartupCommand(void) { - int size = kTpmRequestHeaderLength + sizeof(TPM_PHYSICAL_PRESENCE); + int size = kTpmRequestHeaderLength + sizeof(TPM_STARTUP_TYPE); Command* cmd = newCommand(TPM_ORD_Startup, size); cmd->name = "tpm_startup_cmd"; AddInitializedField(cmd, kTpmRequestHeaderLength, @@ -222,6 +222,16 @@ Command* BuildStartupCommand(void) { return cmd; } +Command* BuildResumeCommand(void) { + int size = kTpmRequestHeaderLength + sizeof(TPM_STARTUP_TYPE); + Command* cmd = newCommand(TPM_ORD_Startup, size); + cmd->name = "tpm_resume_cmd"; + AddInitializedField(cmd, kTpmRequestHeaderLength, + sizeof(TPM_STARTUP_TYPE), + TPM_ST_STATE); + return cmd; +} + Command* BuildSelftestfullCommand(void) { int size = kTpmRequestHeaderLength; Command* cmd = newCommand(TPM_ORD_SelfTestFull, size); @@ -442,6 +452,7 @@ Command* (*builders[])(void) = { BuildPPLockCommand, BuildFinalizePPCommand, BuildStartupCommand, + BuildResumeCommand, BuildSelftestfullCommand, BuildContinueSelfTestCommand, BuildReadPubekCommand, |