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

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

Issue 3116025: Added new commands and reactivated full rebuild after fixing for ARM ebuild. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: move to new build flow (no changes expected) Created 10 years, 3 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/earlyextend.c ('k') | tests/tpm_lite/earlynvram2.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* Test of early writing to the NVRAM. 6 /* Test of early writing to the NVRAM.
7 */ 7 */
8 8
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdint.h> 10 #include <stdint.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <tss/tcs.h>
13 12
14 #include "tlcl.h" 13 #include "tlcl.h"
15 #include "utility.h" 14 #include "utility.h"
16 15
17 #define INDEX0 0xcafe 16 #define INDEX0 0xcafe
18 17
19 int main(int argc, char** argv) { 18 int main(int argc, char** argv) {
20 uint32_t perm; 19 uint32_t perm;
21 uint32_t result; 20 uint32_t result;
22 uint32_t x; 21 uint32_t x;
(...skipping 22 matching lines...) Expand all
45 VBDEBUG(("creating INDEX0\n")); 44 VBDEBUG(("creating INDEX0\n"));
46 perm = TPM_NV_PER_PPWRITE; 45 perm = TPM_NV_PER_PPWRITE;
47 TlclDefineSpace(INDEX0, perm, sizeof(uint32_t)); 46 TlclDefineSpace(INDEX0, perm, sizeof(uint32_t));
48 } else if (result != TPM_SUCCESS) { 47 } else if (result != TPM_SUCCESS) {
49 error("Read failed with result %d\n", result); 48 error("Read failed with result %d\n", result);
50 } 49 }
51 50
52 printf("Test completed successfully\n"); 51 printf("Test completed successfully\n");
53 exit(0); 52 exit(0);
54 } 53 }
OLDNEW
« no previous file with comments | « tests/tpm_lite/earlyextend.c ('k') | tests/tpm_lite/earlynvram2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698