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

Side by Side Diff: src/platform/vboot_reference/vboot_firmware/linktest/main.c

Issue 2327001: VerifyKernelHeader() fills a KernelImage* (Closed) Base URL: ssh://gitrw.chromium.org/chromiumos
Patch Set: Created 10 years, 7 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 | « src/platform/vboot_reference/vboot_firmware/lib/stateful_util.c ('k') | no next file » | 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_kernel_fw.h" 6 #include "load_kernel_fw.h"
7 #include "rollback_index.h" 7 #include "rollback_index.h"
8 #include "tlcl.h" 8 #include "tlcl.h"
9 9
10 int main(void) 10 int main(void)
11 { 11 {
12 // cgptlib.h 12 // cgptlib.h
13 GptInit(0); 13 GptInit(0);
14 GptNextKernelEntry(0, 0, 0); 14 GptNextKernelEntry(0, 0, 0);
15 GptUpdateKernelEntry(0, 0); 15 GptUpdateKernelEntry(0, 0);
16 16
17 // firmware_image_fw.h 17 // firmware_image_fw.h
18 VerifyFirmwareHeader(0, 0, 0, 0); 18 VerifyFirmwareHeader(0, 0, 0, 0);
19 VerifyFirmwarePreamble(0, 0, 0, 0); 19 VerifyFirmwarePreamble(0, 0, 0, 0);
20 VerifyFirmwareData(0, 0, 0, 0, 0); 20 VerifyFirmwareData(0, 0, 0, 0, 0);
21 VerifyFirmware(0, 0, 0); 21 VerifyFirmware(0, 0, 0);
22 GetLogicalFirmwareVersion(0); 22 GetLogicalFirmwareVersion(0);
23 VerifyFirmwareDriver_f(0, 0, 0, 0, 0); 23 VerifyFirmwareDriver_f(0, 0, 0, 0, 0);
24 24
25 // kernel_image_fw.h 25 // kernel_image_fw.h
26 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0); 26 VerifyKernelKeyHeader(0, 0, 0, 0, 0, 0);
27 VerifyKernelPreamble(0, 0, 0, 0); 27 VerifyKernelPreamble(0, 0, 0, 0);
28 VerifyKernelData(0, 0, 0, 0, 0); 28 VerifyKernelData(0, 0, 0, 0, 0);
29 VerifyKernelHeader(0, 0, 0, 0, 0, 0, 0); 29 VerifyKernelHeader(0, 0, 0, 0, 0, 0);
30 VerifyKernel(0, 0, 0); 30 VerifyKernel(0, 0, 0);
31 GetLogicalKernelVersion(0); 31 GetLogicalKernelVersion(0);
32 VerifyKernelDriver_f(0, 0, 0, 0); 32 VerifyKernelDriver_f(0, 0, 0, 0);
33 33
34 // load_kernel_fw.h 34 // load_kernel_fw.h
35 // FIXME: LoadKernel(0); 35 // FIXME: LoadKernel(0);
36 36
37 // rollback_index.h 37 // rollback_index.h
38 SetupTPM(); 38 SetupTPM();
39 GetStoredVersion(0); 39 GetStoredVersion(0);
(...skipping 12 matching lines...) Expand all
52 TlclAssertPhysicalPresence(); 52 TlclAssertPhysicalPresence();
53 TlclSetNvLocked(); 53 TlclSetNvLocked();
54 TlclIsOwned(); 54 TlclIsOwned();
55 TlclForceClear(); 55 TlclForceClear();
56 TlclPhysicalEnable(); 56 TlclPhysicalEnable();
57 TlclPhysicalSetDeactivated(0); 57 TlclPhysicalSetDeactivated(0);
58 TlclGetFlags(0, 0); 58 TlclGetFlags(0, 0);
59 59
60 return 0; 60 return 0;
61 } 61 }
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/vboot_firmware/lib/stateful_util.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698