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

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

Issue 2848006: Refactor LoadFrmware() to avoid global variables, which don't work when running out of ROM (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Undo change to vboot_struct 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_firmware.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" 4 #include "firmware_image_fw.h"
5 #include "kernel_image_fw.h" 5 #include "kernel_image_fw.h"
6 #include "load_firmware_fw.h" 6 #include "load_firmware_fw.h"
7 #include "load_kernel_fw.h" 7 #include "load_kernel_fw.h"
8 #include "rollback_index.h" 8 #include "rollback_index.h"
9 #include "tlcl.h" 9 #include "tlcl.h"
10 #include "vboot_common.h" 10 #include "vboot_common.h"
(...skipping 19 matching lines...) Expand all
30 30
31 /* kernel_image_fw.h */ 31 /* kernel_image_fw.h */
32 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0); 32 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0);
33 VerifyKernelPreamble(0, 0, 0, 0); 33 VerifyKernelPreamble(0, 0, 0, 0);
34 VerifyKernelData(0, 0, 0, 0, 0); 34 VerifyKernelData(0, 0, 0, 0, 0);
35 VerifyKernelHeader(0, 0, 0, 0, 0, 0); 35 VerifyKernelHeader(0, 0, 0, 0, 0, 0);
36 VerifyKernel(0, 0, 0); 36 VerifyKernel(0, 0, 0);
37 GetLogicalKernelVersion(0); 37 GetLogicalKernelVersion(0);
38 38
39 /* load_firmware_fw.h */ 39 /* load_firmware_fw.h */
40 UpdateFirmwareBodyHash(0, 0);
41 LoadFirmware(0); 40 LoadFirmware(0);
42 41
43 /* load_kernel_fw.h */ 42 /* load_kernel_fw.h */
44 LoadKernel(0); 43 LoadKernel(0);
45 44
46 /* rollback_index.h */ 45 /* rollback_index.h */
47 SetupTPM(0, 0); 46 SetupTPM(0, 0);
48 GetStoredVersions(0, &x, &y); 47 GetStoredVersions(0, &x, &y);
49 WriteStoredVersions(0, 0, 0); 48 WriteStoredVersions(0, 0, 0);
50 LockFirmwareVersions(); 49 LockFirmwareVersions();
(...skipping 19 matching lines...) Expand all
70 69
71 /* vboot_common.h */ 70 /* vboot_common.h */
72 OffsetOf(0, 0); 71 OffsetOf(0, 0);
73 GetPublicKeyData(0); 72 GetPublicKeyData(0);
74 GetPublicKeyDataC(0); 73 GetPublicKeyDataC(0);
75 GetSignatureData(0); 74 GetSignatureData(0);
76 GetSignatureDataC(0); 75 GetSignatureDataC(0);
77 VerifyMemberInside(0, 0, 0, 0, 0, 0); 76 VerifyMemberInside(0, 0, 0, 0, 0, 0);
78 VerifyPublicKeyInside(0, 0, 0); 77 VerifyPublicKeyInside(0, 0, 0);
79 VerifySignatureInside(0, 0, 0); 78 VerifySignatureInside(0, 0, 0);
79 PublicKeyInit(0, 0, 0);
80 PublicKeyCopy(0, 0);
80 PublicKeyToRSA(0); 81 PublicKeyToRSA(0);
81 VerifyData(0, 0, 0); 82 VerifyData(0, 0, 0);
82 VerifyDigest(0, 0, 0); 83 VerifyDigest(0, 0, 0);
83 KeyBlockVerify(0, 0, 0); 84 KeyBlockVerify(0, 0, 0);
84 VerifyFirmwarePreamble2(0, 0, 0); 85 VerifyFirmwarePreamble2(0, 0, 0);
85 VerifyKernelPreamble2(0, 0, 0); 86 VerifyKernelPreamble2(0, 0, 0);
86 87
87 /* vboot_kernel.h */ 88 /* vboot_kernel.h */
88 LoadKernel2(0); 89 LoadKernel2(0);
89 90
90 /* vboot_firmware.h */ 91 /* vboot_firmware.h */
91 UpdateFirmwareBodyHash2(0, 0); 92 UpdateFirmwareBodyHash(0, 0, 0);
92 LoadFirmware2(0); 93 LoadFirmware2(0);
93 94
94 return 0; 95 return 0;
95 } 96 }
OLDNEW
« no previous file with comments | « vboot_firmware/lib/vboot_firmware.c ('k') | vboot_firmware/stub/load_firmware_stub.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698