diff options
author | Luigi Semenzato <semenzato@google.com> | 2011-03-16 10:56:48 -0700 |
---|---|---|
committer | Luigi Semenzato <semenzato@google.com> | 2011-03-16 10:56:48 -0700 |
commit | 54992f9d3379c4b048d8da6171f0e578b2db4fac (patch) | |
tree | 19505fd099cc54a3ca89c56d4b2c91dd2ceddf77 /utility/tlcl_generator.c | |
parent | 4c6e6dac28edfdfc724074b929ec95c6e3104d91 (diff) | |
download | vboot-54992f9d3379c4b048d8da6171f0e578b2db4fac.tar.gz |
Added TPM_SaveState command.
Change-Id: If7b6ef3cba733b74ba13db0871e6ac554d0d84ef
BUG=chromium-os:433
TEST=none
Review URL: http://codereview.chromium.org/6696043
Diffstat (limited to 'utility/tlcl_generator.c')
-rw-r--r-- | utility/tlcl_generator.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utility/tlcl_generator.c b/utility/tlcl_generator.c index efb0f341..86b7e4ed 100644 --- a/utility/tlcl_generator.c +++ b/utility/tlcl_generator.c @@ -222,6 +222,13 @@ Command* BuildStartupCommand(void) { return cmd; } +Command* BuildSaveStateCommand(void) { + int size = kTpmRequestHeaderLength; + Command* cmd = newCommand(TPM_ORD_SaveState, size); + cmd->name = "tpm_savestate_cmd"; + return cmd; +} + Command* BuildResumeCommand(void) { int size = kTpmRequestHeaderLength + sizeof(TPM_STARTUP_TYPE); Command* cmd = newCommand(TPM_ORD_Startup, size); @@ -452,6 +459,7 @@ Command* (*builders[])(void) = { BuildPPLockCommand, BuildFinalizePPCommand, BuildStartupCommand, + BuildSaveStateCommand, BuildResumeCommand, BuildSelftestfullCommand, BuildContinueSelfTestCommand, |