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

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

Issue 2857030: Exhaustive test for rollback code (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Fix write count handling and improve comments. Created 10 years, 5 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 | « firmware/lib/rollback_index.c ('k') | firmware/stub/tlcl.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 1
2 #include "cgptlib.h" 2 #include "cgptlib.h"
3 #include "load_firmware_fw.h" 3 #include "load_firmware_fw.h"
4 #include "load_kernel_fw.h" 4 #include "load_kernel_fw.h"
5 #include "rollback_index.h" 5 #include "rollback_index.h"
6 #include "tlcl.h" 6 #include "tlcl.h"
7 #include "vboot_common.h" 7 #include "vboot_common.h"
8 #include "vboot_kernel.h" 8 #include "vboot_kernel.h"
9 9
10 int main(void) 10 int main(void)
(...skipping 17 matching lines...) Expand all
28 RollbackFirmwareRead(&x, &y); 28 RollbackFirmwareRead(&x, &y);
29 RollbackFirmwareWrite(0, 0); 29 RollbackFirmwareWrite(0, 0);
30 RollbackFirmwareLock(); 30 RollbackFirmwareLock();
31 RollbackKernelRecovery(0); 31 RollbackKernelRecovery(0);
32 RollbackKernelRead(&x, &y); 32 RollbackKernelRead(&x, &y);
33 RollbackKernelWrite(0, 0); 33 RollbackKernelWrite(0, 0);
34 RollbackKernelLock(); 34 RollbackKernelLock();
35 35
36 /* tlcl.h */ 36 /* tlcl.h */
37 TlclLibInit(); 37 TlclLibInit();
38 TlclCloseDevice();
39 TlclOpenDevice();
38 TlclStartup(); 40 TlclStartup();
39 TlclSelftestfull(); 41 TlclSelftestfull();
40 TlclContinueSelfTest(); 42 TlclContinueSelfTest();
41 TlclDefineSpace(0, 0, 0); 43 TlclDefineSpace(0, 0, 0);
42 TlclWrite(0, 0, 0); 44 TlclWrite(0, 0, 0);
43 TlclRead(0, 0, 0); 45 TlclRead(0, 0, 0);
44 TlclWriteLock(0); 46 TlclWriteLock(0);
45 TlclReadLock(0); 47 TlclReadLock(0);
46 TlclAssertPhysicalPresence(); 48 TlclAssertPhysicalPresence();
47 TlclSetNvLocked(); 49 TlclSetNvLocked();
48 TlclIsOwned(); 50 TlclIsOwned();
49 TlclForceClear(); 51 TlclForceClear();
50 TlclSetEnable(); 52 TlclSetEnable();
53 TlclClearEnable();
51 TlclSetDeactivated(0); 54 TlclSetDeactivated(0);
52 TlclGetFlags(0, 0); 55 TlclGetFlags(0, 0);
53 56
54 /* vboot_common.h */ 57 /* vboot_common.h */
55 OffsetOf(0, 0); 58 OffsetOf(0, 0);
56 GetPublicKeyData(0); 59 GetPublicKeyData(0);
57 GetPublicKeyDataC(0); 60 GetPublicKeyDataC(0);
58 GetSignatureData(0); 61 GetSignatureData(0);
59 GetSignatureDataC(0); 62 GetSignatureDataC(0);
60 VerifyMemberInside(0, 0, 0, 0, 0, 0); 63 VerifyMemberInside(0, 0, 0, 0, 0, 0);
61 VerifyPublicKeyInside(0, 0, 0); 64 VerifyPublicKeyInside(0, 0, 0);
62 VerifySignatureInside(0, 0, 0); 65 VerifySignatureInside(0, 0, 0);
63 PublicKeyInit(0, 0, 0); 66 PublicKeyInit(0, 0, 0);
64 PublicKeyCopy(0, 0); 67 PublicKeyCopy(0, 0);
65 PublicKeyToRSA(0); 68 PublicKeyToRSA(0);
66 VerifyData(0, 0, 0); 69 VerifyData(0, 0, 0);
67 VerifyDigest(0, 0, 0); 70 VerifyDigest(0, 0, 0);
68 KeyBlockVerify(0, 0, 0); 71 KeyBlockVerify(0, 0, 0);
69 VerifyFirmwarePreamble2(0, 0, 0); 72 VerifyFirmwarePreamble2(0, 0, 0);
70 VerifyKernelPreamble2(0, 0, 0); 73 VerifyKernelPreamble2(0, 0, 0);
71 74
72 return 0; 75 return 0;
73 } 76 }
OLDNEW
« no previous file with comments | « firmware/lib/rollback_index.c ('k') | firmware/stub/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698