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

Side by Side Diff: vboot_firmware/linktest/main.c

Issue 2866006: Move old vkernel code out of vboot_firmware. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Created 10 years, 6 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 | « vboot_firmware/lib/vboot_kernel.c ('k') | vboot_firmware/stub/load_firmware_stub.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 #include <stdio.h> 1 #include <stdio.h>
2 2
3 #include "cgptlib.h" 3 #include "cgptlib.h"
4 #include "firmware_image_fw.h"
5 #include "kernel_image_fw.h"
6 #include "load_firmware_fw.h" 4 #include "load_firmware_fw.h"
7 #include "load_kernel_fw.h" 5 #include "load_kernel_fw.h"
8 #include "rollback_index.h" 6 #include "rollback_index.h"
9 #include "tlcl.h" 7 #include "tlcl.h"
10 #include "vboot_common.h" 8 #include "vboot_common.h"
11 #include "vboot_kernel.h" 9 #include "vboot_kernel.h"
12 10
13 int main(void) 11 int main(void)
14 { 12 {
15 uint16_t x, y; 13 uint16_t x, y;
16 14
17 /* cgptlib.h */ 15 /* cgptlib.h */
18 GptInit(0); 16 GptInit(0);
19 GptNextKernelEntry(0, 0, 0); 17 GptNextKernelEntry(0, 0, 0);
20 GptUpdateKernelEntry(0, 0); 18 GptUpdateKernelEntry(0, 0);
21 19
22 /* kernel_image_fw.h */
23 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0);
24 VerifyKernelPreamble(0, 0, 0, 0);
25 VerifyKernelData(0, 0, 0, 0, 0);
26 VerifyKernelHeader(0, 0, 0, 0, 0, 0);
27 VerifyKernel(0, 0, 0);
28 GetLogicalKernelVersion(0);
29
30 /* load_firmware_fw.h */ 20 /* load_firmware_fw.h */
31 UpdateFirmwareBodyHash(0, 0, 0); 21 UpdateFirmwareBodyHash(0, 0, 0);
32 LoadFirmware(0); 22 LoadFirmware(0);
33 23
34 /* load_kernel_fw.h */ 24 /* load_kernel_fw.h */
35 LoadKernel(0); 25 LoadKernel(0);
36 26
37 /* rollback_index.h */ 27 /* rollback_index.h */
38 SetupTPM(0, 0); 28 SetupTPM(0, 0);
39 GetStoredVersions(0, &x, &y); 29 GetStoredVersions(0, &x, &y);
(...skipping 30 matching lines...) Expand all
70 VerifySignatureInside(0, 0, 0); 60 VerifySignatureInside(0, 0, 0);
71 PublicKeyInit(0, 0, 0); 61 PublicKeyInit(0, 0, 0);
72 PublicKeyCopy(0, 0); 62 PublicKeyCopy(0, 0);
73 PublicKeyToRSA(0); 63 PublicKeyToRSA(0);
74 VerifyData(0, 0, 0); 64 VerifyData(0, 0, 0);
75 VerifyDigest(0, 0, 0); 65 VerifyDigest(0, 0, 0);
76 KeyBlockVerify(0, 0, 0); 66 KeyBlockVerify(0, 0, 0);
77 VerifyFirmwarePreamble2(0, 0, 0); 67 VerifyFirmwarePreamble2(0, 0, 0);
78 VerifyKernelPreamble2(0, 0, 0); 68 VerifyKernelPreamble2(0, 0, 0);
79 69
80 /* vboot_kernel.h */
81 LoadKernel2(0);
82
83 return 0; 70 return 0;
84 } 71 }
OLDNEW
« no previous file with comments | « vboot_firmware/lib/vboot_kernel.c ('k') | vboot_firmware/stub/load_firmware_stub.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698