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

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

Issue 2711006: Import recent tpm_lite changes that make all TPM commands return a status. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: cleanup from gauravsh's feedback 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/rollback_index.c ('k') | vboot_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 #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 10
(...skipping 30 matching lines...) Expand all
41 LoadKernel(0); 41 LoadKernel(0);
42 42
43 // rollback_index.h 43 // rollback_index.h
44 SetupTPM(); 44 SetupTPM();
45 GetStoredVersions(0, &x, &y); 45 GetStoredVersions(0, &x, &y);
46 WriteStoredVersions(0, 0, 0); 46 WriteStoredVersions(0, 0, 0);
47 LockFirmwareVersions(); 47 LockFirmwareVersions();
48 LockKernelVersionsByLockingPP(); 48 LockKernelVersionsByLockingPP();
49 49
50 // tlcl.h 50 // tlcl.h
51 TlclLibinit(); 51 TlclLibInit();
52 TlclStartup(); 52 TlclStartup();
53 TlclSelftestfull(); 53 TlclSelftestfull();
54 TlclContinueSelfTest();
54 TlclDefineSpace(0, 0, 0); 55 TlclDefineSpace(0, 0, 0);
55 TlclWrite(0, 0, 0); 56 TlclWrite(0, 0, 0);
56 TlclRead(0, 0, 0); 57 TlclRead(0, 0, 0);
57 TlclWriteLock(0); 58 TlclWriteLock(0);
58 TlclReadLock(0); 59 TlclReadLock(0);
59 TlclAssertPhysicalPresence(); 60 TlclAssertPhysicalPresence();
60 TlclSetNvLocked(); 61 TlclSetNvLocked();
61 TlclIsOwned(); 62 TlclIsOwned();
62 TlclForceClear(); 63 TlclForceClear();
63 TlclSetEnable(); 64 TlclSetEnable();
64 TlclSetDeactivated(0); 65 TlclSetDeactivated(0);
65 TlclGetFlags(0, 0); 66 TlclGetFlags(0, 0);
66 67
67 return 0; 68 return 0;
68 } 69 }
OLDNEW
« no previous file with comments | « vboot_firmware/lib/rollback_index.c ('k') | vboot_firmware/stub/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698