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

Unified Diff: utility/tlcl_generator.c

Issue 3232006: Add resume command (TPM_Startup(ST_STATE)) (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 4 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 | « firmware/version.c ('k') | no next file » | 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 89d15d6f53d1efcc792afba05f940b267fc81ca3..96a23dd1c8d8ab259ee962e4525d84e188ac9aa3 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,
« no previous file with comments | « firmware/version.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698