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

Unified Diff: src/platform/tpm_lite/src/testsuite/writelimit.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/testsuite/readonly.c ('k') | src/platform/tpm_lite/src/tlcl/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/tpm_lite/src/testsuite/writelimit.c
diff --git a/src/platform/tpm_lite/src/testsuite/writelimit.c b/src/platform/tpm_lite/src/testsuite/writelimit.c
index b2a251a48fbbab7534000edd9f6c6c6488acfc69..dcaf7b0f995b7bc6536c56280f381e0a48080c43 100644
--- a/src/platform/tpm_lite/src/testsuite/writelimit.c
+++ b/src/platform/tpm_lite/src/testsuite/writelimit.c
@@ -16,12 +16,12 @@
#define INDEX0 0xda70
#define TPM_MAX_NV_WRITES_NOOWNER 64
-int main(void) {
+int main(int argc, char** argv) {
int i;
uint32_t result;
uint8_t disable, deactivated; /* the TPM specs use these exact names */
- TlclLibinit();
+ TlclLibInit();
TlclStartup();
TlclSelftestfull();
@@ -32,8 +32,8 @@ int main(void) {
printf("disable is %d, deactivated is %d\n", disable, deactivated);
if (disable || deactivated) {
- TlclPhysicalEnable();
- (void) TlclPhysicalSetDeactivated(0);
+ TlclSetEnable();
+ (void) TlclSetDeactivated(0);
printf("TPM will be active after next reboot\n");
exit(0);
}
« no previous file with comments | « src/platform/tpm_lite/src/testsuite/readonly.c ('k') | src/platform/tpm_lite/src/tlcl/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698