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

Unified Diff: src/platform/tpm_lite/src/tlcl/generator.c

Issue 1558015: 1. Changes and additions for autotest; 2. Two-level write-free locking test. (Closed)
Patch Set: gauravsh@chromium.org Created 10 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 | « src/platform/tpm_lite/src/tlcl/Makefile ('k') | src/platform/tpm_lite/src/tlcl/tlcl.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/tpm_lite/src/tlcl/generator.c
diff --git a/src/platform/tpm_lite/src/tlcl/generator.c b/src/platform/tpm_lite/src/tlcl/generator.c
index a1bc46bf60bdb90d8d7cf343f14b06c7ebb71a24..dc3cf1dfd4aee635d9608430e739cbced7de56ae 100644
--- a/src/platform/tpm_lite/src/tlcl/generator.c
+++ b/src/platform/tpm_lite/src/tlcl/generator.c
@@ -170,16 +170,26 @@ Command* BuildReadCommand(void) {
return cmd;
}
-Command* BuildPhysicalPresenceCommand(void) {
+Command* BuildPPAssertCommand(void) {
int size = kTpmRequestHeaderLength + sizeof(TPM_PHYSICAL_PRESENCE);
Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size);
- cmd->name = "tpm_physicalpresence_cmd";
+ cmd->name = "tpm_ppassert_cmd";
AddInitializedField(cmd, kTpmRequestHeaderLength,
sizeof(TPM_PHYSICAL_PRESENCE),
TPM_PHYSICAL_PRESENCE_PRESENT);
return cmd;
}
+Command* BuildPPLockCommand(void) {
+ int size = kTpmRequestHeaderLength + sizeof(TPM_PHYSICAL_PRESENCE);
+ Command* cmd = newCommand(TSC_ORD_PhysicalPresence, size);
+ cmd->name = "tpm_pplock_cmd";
+ AddInitializedField(cmd, kTpmRequestHeaderLength,
+ sizeof(TPM_PHYSICAL_PRESENCE),
+ TPM_PHYSICAL_PRESENCE_LOCK);
+ return cmd;
+}
+
Command* BuildStartupCommand(void) {
int size = kTpmRequestHeaderLength + sizeof(TPM_PHYSICAL_PRESENCE);
Command* cmd = newCommand(TPM_ORD_Startup, size);
@@ -344,7 +354,8 @@ Command* (*builders[])(void) = {
BuildDefineSpaceCommand,
BuildWriteCommand,
BuildReadCommand,
- BuildPhysicalPresenceCommand,
+ BuildPPAssertCommand,
+ BuildPPLockCommand,
BuildStartupCommand,
BuildSelftestfullCommand,
BuildReadPubekCommand,
« no previous file with comments | « src/platform/tpm_lite/src/tlcl/Makefile ('k') | src/platform/tpm_lite/src/tlcl/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698