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 #include "cgptlib.h" | 6 #include "cgptlib.h" |
7 #include "load_firmware_fw.h" | 7 #include "load_firmware_fw.h" |
8 #include "load_kernel_fw.h" | 8 #include "load_kernel_fw.h" |
9 #include "rollback_index.h" | 9 #include "rollback_index.h" |
10 #include "tlcl.h" | 10 #include "tlcl.h" |
11 #include "vboot_common.h" | 11 #include "vboot_common.h" |
12 #include "vboot_kernel.h" | 12 #include "vboot_kernel.h" |
| 13 #include "vboot_nvstorage.h" |
13 | 14 |
14 | 15 |
15 int main(void) | 16 int main(void) |
16 { | 17 { |
17 /* cgptlib.h */ | 18 /* cgptlib.h */ |
18 GptInit(0); | 19 GptInit(0); |
19 GptNextKernelEntry(0, 0, 0); | 20 GptNextKernelEntry(0, 0, 0); |
20 GptUpdateKernelEntry(0, 0); | 21 GptUpdateKernelEntry(0, 0); |
21 | 22 |
22 /* load_firmware_fw.h */ | 23 /* load_firmware_fw.h */ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 VerifySignatureInside(0, 0, 0); | 73 VerifySignatureInside(0, 0, 0); |
73 PublicKeyInit(0, 0, 0); | 74 PublicKeyInit(0, 0, 0); |
74 PublicKeyCopy(0, 0); | 75 PublicKeyCopy(0, 0); |
75 PublicKeyToRSA(0); | 76 PublicKeyToRSA(0); |
76 VerifyData(0, 0, 0, 0); | 77 VerifyData(0, 0, 0, 0); |
77 VerifyDigest(0, 0, 0); | 78 VerifyDigest(0, 0, 0); |
78 KeyBlockVerify(0, 0, 0, 0); | 79 KeyBlockVerify(0, 0, 0, 0); |
79 VerifyFirmwarePreamble(0, 0, 0); | 80 VerifyFirmwarePreamble(0, 0, 0); |
80 VerifyKernelPreamble(0, 0, 0); | 81 VerifyKernelPreamble(0, 0, 0); |
81 | 82 |
| 83 VbNvSetup(0); |
| 84 VbNvGet(0, 0, 0); |
| 85 VbNvSet(0, 0, 0); |
| 86 VbNvTeardown(0); |
| 87 |
82 return 0; | 88 return 0; |
83 } | 89 } |
OLD | NEW |