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

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

Issue 2320001: Add missing TPM constant and fix test code. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
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 | « src/platform/vboot_reference/vboot_firmware/lib/include/tss_constants.h ('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)
(...skipping 20 matching lines...) Expand all
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);
40 WriteStoredVersion(0, 0); 40 WriteStoredVersion(0, 0);
41 LockStoredVersion(0); 41 LockFirmwareVersions();
42 LockKernelVersionsByLockingPP();
42 43
43 // tlcl.h 44 // tlcl.h
44 TlclLibinit(); 45 TlclLibinit();
45 TlclStartup(); 46 TlclStartup();
46 TlclSelftestfull(); 47 TlclSelftestfull();
47 TlclDefineSpace(0, 0, 0); 48 TlclDefineSpace(0, 0, 0);
48 TlclWrite(0, 0, 0); 49 TlclWrite(0, 0, 0);
49 TlclRead(0, 0, 0); 50 TlclRead(0, 0, 0);
50 TlclWriteLock(0); 51 TlclWriteLock(0);
51 TlclReadLock(0); 52 TlclReadLock(0);
52 TlclAssertPhysicalPresence(); 53 TlclAssertPhysicalPresence();
53 TlclSetNvLocked(); 54 TlclSetNvLocked();
54 TlclIsOwned(); 55 TlclIsOwned();
55 TlclForceClear(); 56 TlclForceClear();
56 TlclPhysicalEnable(); 57 TlclSetEnable();
57 TlclPhysicalSetDeactivated(0); 58 TlclSetDeactivated(0);
58 TlclGetFlags(0, 0); 59 TlclGetFlags(0, 0);
59 60
60 return 0; 61 return 0;
61 } 62 }
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/vboot_firmware/lib/include/tss_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698