Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Unified Diff: utility/tlcl_generator.c

Issue 6719005: Cherry-pick vboot_reference files from TOT to support crossystem (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@0.11.257.B
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utility/load_kernel_test.c ('k') | utility/tpmc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/tlcl_generator.c
diff --git a/utility/tlcl_generator.c b/utility/tlcl_generator.c
index efb0f341df758d7544febe224e4a471d3d413946..86b7e4edff2d8a93f8f5e3fad8346d4eee1d18a9 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,
« no previous file with comments | « utility/load_kernel_test.c ('k') | utility/tpmc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698