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

Side by Side Diff: tests/tpm_lite/startup.c

Issue 3077016: Small program to temporary fix TPM state until we can do this in the BIOS. (Closed) Base URL: ssh://git@chromiumos-git/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 unified diff | Download patch
« no previous file with comments | « tests/tpm_lite/Makefile ('k') | utility/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 /* Only perform a TPM_Startup command.
7 */
8
9 #include <stdio.h>
10
11 #include "tlcl.h"
12
13 int main(int argc, char** argv) {
14 uint32_t result;
15 TlclLibInit();
16 result = TlclStartup();
17 if (result != 0) {
18 printf("tpm startup failed with 0x%x\n", result);
19 }
20 result = TlclGetFlags(NULL, NULL, NULL);
21 if (result != 0) {
22 printf("tpm getflags failed with 0x%x\n", result);
23 }
24 printf("executing SelfTestFull\n");
25 TlclSelfTestFull();
26 result = TlclGetFlags(NULL, NULL, NULL);
27 if (result != 0) {
28 printf("tpm getflags failed with 0x%x\n", result);
29 }
30 return 0;
31 }
OLDNEW
« no previous file with comments | « tests/tpm_lite/Makefile ('k') | utility/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698