OLD | NEW |
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 recovery when we hit the NVRAM write limit for an unowned TPM. | 6 /* Test of recovery when we hit the NVRAM write limit for an unowned TPM. |
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 0xda70 | 16 #define INDEX0 0xda70 |
18 #define TPM_MAX_NV_WRITES_NOOWNER 64 | 17 #define TPM_MAX_NV_WRITES_NOOWNER 64 |
19 | 18 |
20 int main(int argc, char** argv) { | 19 int main(int argc, char** argv) { |
21 int i; | 20 int i; |
22 uint32_t result; | 21 uint32_t result; |
(...skipping 29 matching lines...) Expand all Loading... |
52 error("unexpected error code %d (0x%x)\n"); | 51 error("unexpected error code %d (0x%x)\n"); |
53 } | 52 } |
54 } | 53 } |
55 } | 54 } |
56 | 55 |
57 /* Done for now. | 56 /* Done for now. |
58 */ | 57 */ |
59 printf("Test completed successfully\n"); | 58 printf("Test completed successfully\n"); |
60 exit(0); | 59 exit(0); |
61 } | 60 } |
OLD | NEW |